MATLAB Answers

0

Simulink rtw built: Problem with calling the gcc Linker.

Asked by Christian Kuklinski on 27 Nov 2018 at 7:44
Latest activity Commented on by Christian Kuklinski on 8 Dec 2018 at 22:26
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

Hi Christian,
Which is the working directory where you are trying to build the model?
Regards,
Alok
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.

0 Answers