No supported compiler was found.
Afficher commentaires plus anciens
Upon trying to compile a file using mex, I receive the following error message:
Error using mex
No supported compiler was found.
I installed Visual Studio 2017 with support for C++ and actually
mex -setup C++
lets me choose my compiler.
Which additional diagnostics could I run in order to pin down the problem?
6 commentaires
Walter Roberson
le 8 Avr 2019
Perhaps you need to mex -setup C
Nicolas Bourbaki
le 21 Juil 2019
Modifié(e) : Nicolas Bourbaki
le 21 Juil 2019
Walter Roberson
le 21 Juil 2019
Visual Studio installs one compiler by default but not another one by default. Unfortunately at the moment I do not recall which is the default. It can sometimes be necessary to go back and ask visual studio to install more components.
Matt J
le 1 Déc 2020
I finally realized that Visual Studio comes without an installed compiler.
And now I am facing this same problem. How does one add a compiler to Visual Studio and configure things so that Matlab can see it?
Nicolas Bourbaki
le 1 Déc 2020
Modifié(e) : Nicolas Bourbaki
le 1 Déc 2020
Walter Roberson
le 1 Déc 2020
By the way, Visual Studio does not install the C compiler by default.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!