MEX Function Build with Visual Studio

조회 수: 5 (최근 30일)
snow33
snow33 2018년 9월 20일
댓글: Mark Zurawski 2020년 2월 15일
I had Simulink model and have generated C code from MATLAB. Basically Simulink Model has many functions and one S-Function with file extension .mexw32 (hex code). The process of C-code generation is working without any error. Now that I have C-code and header files of my model, I wanted to build the solution file(.bat file) from these files with Visual Studio.
When I tried to build the files then I am getting error as shown in attached picture. What I conclude is, there is a problem with the .mexw32 file to build. I dont have source code (c code) for these S-function .mexw32 file. I think that could be the problem while building the solution.
Do I need source code to build the solution or that doesnt matter if I have it or not? Because only the .mexw32 file is causing the problem during buiding the solution.
I am using cnp.tlc (CANape Target Lang. compiler) for code generation. Is there anything that I shall change in config. panel for code generation to generate code?
  댓글 수: 1
Mark Zurawski
Mark Zurawski 2020년 2월 15일
It looks like you are using the Vector defined TLC for this, but you are using some functions that may not have associated TLC files for the code generation. It may be that those functions are not intended for code generation. You may need to use alternative functions if those .mexw32 were only intended for Matlab only operations.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Target Language Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by