- Go to Modelling tab --> Model Settings --> Code Generation
- Change the 'Language standard' field to C89/C90 (ANSI)
Codegen error while creating standalone executable
조회 수: 6 (최근 30일)
이전 댓글 표시
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”
댓글 수: 0
답변 (1개)
Meet
2023년 4월 5일
You can try the below mentioned configuration changes:
After making these changes try regenerating the code.
You can also refer to Unresolved external errors(fmin, fmax,...) while generating s-function from Simulink model using RTW - MATLAB Answers - MATLAB Central (mathworks.com) and Simulink Compiler - Max block not finding fmax? - MATLAB Answers - MATLAB Central (mathworks.com), here the users had encountered similar error.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!