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

조회 수: 9 (최근 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
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 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