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

22 ビュー (過去 30 日間)
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 件のコメント
jive
jive 2014 年 6 月 26 日
編集済み: jive 2014 年 6 月 26 日
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).
Kaustubha Govind
Kaustubha Govind 2014 年 6 月 27 日
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 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by