Compile error when integrate the code generated from Simulink model by embedded Coder and the source code generated from Rhapsody SysML model

When I try to compile integration code which included the code generated from Simulink model by embedded Coder and source code generated from Rhapsody SysML model, the compile error is coming out as follows:
HPDCtrl.obj : error LNK2001: unresolved external symbol "_rtInf"
HPDCtrl.obj : error LNK2019: unresolved external symbol _rt_InitInfAndNaN refererced in...
But if I removed the Derivative block in simulink and generated code again, the program will become succesed.
Does anybody know what is reason it?
MATLAB/Simulink:
MATLAB バージョン 8.0 (R2012b)
Simulink バージョン 8.0 (R2012b)
Embedded Coder バージョン 6.3 (R2012b)
MATLAB Coder バージョン 2.3 (R2012b)
Simulink Coder バージョン 8.3 (R2012b)
Rhapsody:
IBM Rational Rhapsody for c++ 8.0

1 件のコメント

TAB
TAB 2012 年 12 月 4 日
Can you post whole error output. I need to know, in which generated file you are getting error.

サインインしてコメントする。

回答 (1 件)

Adon Yazigi
Adon Yazigi 2019 年 12 月 11 日
I just found a solution. make sure to #include all generated source files (C/C++) to your code.

カテゴリ

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

タグ

質問済み:

2012 年 12 月 4 日

回答済み:

2019 年 12 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by