Error while exporting simulink model to DLL (Shared Library with embedded code)

2 ビュー (過去 30 日間)
Rafael García Pérez
Rafael García Pérez 2022 年 3 月 18 日
編集済み: VBBV 2022 年 3 月 19 日
Hello,
I have a simulink model that simply multiplies an input by 2 and puts the result into an ouput. Now I want to export this simulink model or function into a .dll so that I can use it in other programs. I am doing that by using embedded code as describe in here: Package Generated Code as Shared Libraries - MATLAB & Simulink - MathWorks España
When I click the build button all the process starts and stops with an error at this point (See attached picture). All the previous steps are done properly.
Could anyone please tell me the root of this error? Because 3 days ago I did the same process and I was able to export to a .dll file but with no reason at all right now doing the same process this is not working.
Thakns, regards
  3 件のコメント
Rafael García Pérez
Rafael García Pérez 2022 年 3 月 18 日
No, actually when I click to generate only C code, I have no error. But when I click on build system in order to generate DLL then I get the error. Attached picture of the files generated.
VBBV
VBBV 2022 年 3 月 19 日
編集済み: VBBV 2022 年 3 月 19 日
It's a compile error which is something to do with your C file code syntax/ naming convention. Check with your C file if there are any coding errors first, then update the compiler if it's not recent version compatible to matlab

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by