Undefined reference error when building RTW model reference with embedded matlab function blocks.
古いコメントを表示
I have a model which references several other models. I can build each of the referenced models individually without issue. When I try to build the top level model I get several errors like this :
ref_model.c:(.text+0xae6): undefined reference to 'pow'
It fails to find pow, cos, sin, sqrt functions.This error only appears in referenced model that contain embedded matlab functions. I have other referenced models in my system that contain only default Simulink blocks and they do not have this error. The error message points to the issue arising from mr_ref_model declaration in the C code for my top level model. I attempted to add declare the libraries that include these functions in he code for each of the referenced models but that won't help. The folders of each model are in the same directory as my top level model. What else can I try?I am using matlab 2007b.
1 件のコメント
Nigel Stuart
2016 年 9 月 22 日
編集済み: Nigel Stuart
2016 年 9 月 23 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Schedule Model Components についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!