Do I need the MinGW-w64 Compiler to load library (.c/.h/.dll) in simulink?

10 ビュー (過去 30 日間)
Lorenza
Lorenza 2024 年 9 月 11 日
編集済み: Venkat Siddarth Reddy 2024 年 9 月 11 日
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

回答 (1 件)

Venkat Siddarth Reddy
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 configured to use 'gcc' for C language compilation.
mex -setup c++ % for c++ Compiler
MEX configured to use 'g++' for C++ language compilation.
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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by