No supported MEX compiler, but codegen executes successfully
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi all,
I'm working with MATLAB Coder (R2016b, Windows 7 SP1) to get a speedup by compiling my function to a MEX file. The compilation is successful, and presumably Matlab is using the default LCC shipped with it, but I'd like to verify this for sanity purposes. However, when I run mex -setup I get a "No supported compiler for SDK found" error.
If this is intended and I install the MinGW compiler, how can I switch back and forth between the two?
Or, do I need to set an environment variable somewhere for Matlab to find LCC? If I do, how does the codegen command manage to find it without any additional help?
0 Kommentare
Antworten (1)
Ryan Livingston
am 17 Mär. 2017
As it says here:
MATLAB Coder only uses LCC when there is no other compiler installed. If you install another compiler, LCC will not be used.
If performance is your goal, then I'd recommend using another compiler as LCC does not optimize to the degree of other compilers such as MinGW:
0 Kommentare
Siehe auch
Kategorien
Mehr zu MATLAB Support for MinGW-w64 C/C++ Compiler finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!