Do I need the MinGW-w64 Compiler to load library (.c/.h/.dll) in simulink?
조회 수: 5 (최근 30일)
이전 댓글 표시
I found the example to import a dll in Simulink here: How can I use a DLL file in Simulink? - MATLAB Answers - MATLAB Central (mathworks.com)
But trying the example Simulink gives me an error: Simulink need a support of a compiler.
If I have Visual Studio with its compiler, how can I set that compiler for Matlab or Simulink?
Thank you in advance
댓글 수: 0
답변 (1개)
Venkat Siddarth Reddy
2024년 9월 11일
편집: Venkat Siddarth Reddy
2024년 9월 11일
Hi Lorenza,
You can try the following command to configure the C/C++ compiler to be used by the MATLAB
mex -setup c % for C Compiler
mex -setup c++ % for c++ Compiler
The above command provides the current compiler being used by MATLAB and links to other available compilers corresponding to the target language.To change the default, select one of those links.
To learn more about configuring the compiler, please refer to the following documentation:
Regards,
Venkat Siddarth V
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!