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

6 次查看(过去 30 天)
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
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 CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by