Unresolved external errors(fmin, fmax,...) while generating s-function from Simulink model using RTW

I am trying to generate an s-function from a Simulink model using RTW Embedded Coder. I got the below error-
Writing library for Subsystem_sf.mexw32
subsystem.obj .text: undefined reference to '_fmaxf'
subsystem.obj .text: undefined reference to '_fminf'
subsystem.obj .text: undefined reference to '_fabsf'
subsystem.obj .text: undefined reference to '_sqrtf'
subsystem.obj .text: undefined reference to '_floorf'_
subsystem.obj .text: undefined reference to '_fmodf'| | _
Any suggestions?
P.S: I am using the LCC MATLAB compiler and also tried compiling with VS 2008 &2010.

댓글 수: 2

Solution: Looks like it was to do with the configuration setting on the model.
Set Configuration Parameters>Real Time workshop>Interface>Target function library as C89/C90(ANSI).
jive: Would you please post this in the Answers section and accept it, so it's clear that this is resolved? Thanks!

댓글을 달려면 로그인하십시오.

 채택된 답변

jive
jive 2014년 6월 27일
Solution: Looks like it was to do with the configuration setting on the model.
Set Configuration Parameters>Real Time workshop>Interface>Target function library as C89/C90(ANSI).

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2014년 6월 26일

답변:

2014년 6월 27일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by