Simulink rtw built: Problem with calling the gcc Linker.

2 views (last 30 days)
Hi Guys,
i got a Problem with the Simulink Coder. In my Model is C-Code implemented as S-Function (using Legacy code tool). Simulation works fine but if i want to built the model (for use as dSpace target) i got an Error. In my oppinion the following lines out of the Diagnostic-Viewer are responsible for the Error.
C:\Programme\MinGW_TDM-GCC-64\bin/gcc -Wl,-rpath,"C:/PROGRA~1/MATLAB/R2015b/bin/win64",-L"C:/PROGRA~1/MATLAB/R2015b/bin/win64" -o ../model_v1.exe @model_v1.lnk rt_main.obj -lws2_32
gcc: error: RTGETINF.obj: No such file or directory
gcc: error: RTGETNAN.obj: No such file or directory
gmake: *** [../model_v1.exe] Error 1
Does anybody has/had the same Problem and maybe the solution for this Problem?
Regards
Christian
  2 Comments
Alok Nimrani
Alok Nimrani on 6 Dec 2018
Hi Christian,
Which is the working directory where you are trying to build the model?
Regards,
Alok
Christian Kuklinski
Christian Kuklinski on 8 Dec 2018
Hi Alok,
pwd was the correct one. The Problem is solved with support of dSpace. I got a precompiled lib (MinGW) which i want to cross compile to the Target. Thats the main Problem. Every part of the Code should be compiled with the dSpace TargetLink.
Thanks for your answer!
Regards
Christian

Sign in to comment.

Answers (0)

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!