Codegen error while creating standalone executable

I am trying to generate an object code for a target hardware for my simulink diagram. Code and executable are successfully created when I am using double datatype but when I change datatype of the inports and other blocks to single ( due to hardware limitations) the code generation gives an error. “simname.obj.text : undefined reference fmaxf. Gmake Error 148… make command return an error of 2”

回答 (1 件)

Meet
Meet 2023 年 4 月 5 日

0 投票

You can try the below mentioned configuration changes:
  1. Go to Modelling tab --> Model Settings --> Code Generation
  2. Change the 'Language standard' field to C89/C90 (ANSI)
After making these changes try regenerating the code.

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

質問済み:

N/A
2023 年 3 月 27 日

回答済み:

2023 年 4 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by