Simulink cannot detect compiler for c code generation from a protected model, even thoug Matlab sees it (MinGW)
Ältere Kommentare anzeigen
Simulink Embedded Coder cannot generate c code from a protected model.
Error message:
No supported compiler detected. A compiler is required by some simulation modes and the build process. Install a supported compiler. For options, see https://www.mathworks.com/support/compilers. After installing a supported compiler, restart MATLAB.
I have installed MinGW.
Matlab can see it:
>> mex -setup
MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
I can generate code from other models without problems.
I don't know what's inside the protected model, but the code generation settings seem to be the same as for the other models.
1) How is it possible that Matlab can see MinGW but Simulink can not?
2) What can be inside a protected model that causes this error message when trying to generate c code from it?
3 Kommentare
Walter Roberson
am 21 Sep. 2021
Which release?
In some releases, MinGW is not supported for some operations and VS or Intel must be used instead.
Szkupien Bence
am 21 Sep. 2021
Szkupien Bence
am 21 Sep. 2021
Antworten (0)
Kategorien
Mehr zu MATLAB Support for MinGW-w64 C/C++ Compiler finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!