No supported compiler was found.

107 visualizzazioni (ultimi 30 giorni)
Nicolas Bourbaki
Nicolas Bourbaki il 8 Apr 2019
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 Commenti
Nicolas Bourbaki
Nicolas Bourbaki il 1 Dic 2020
Modificato: Nicolas Bourbaki il 1 Dic 2020
You would run
mex -setup C++
This lists a couple of options in case it finds a suitable compiler like the following:
mex -setup:'C:\Program Files\MATLAB\R2020b\bin\win64\mexopts\msvcpp2015.xml' C++
Walter Roberson
Walter Roberson il 1 Dic 2020
By the way, Visual Studio does not install the C compiler by default.

Accedi per commentare.

Risposta accettata

Matt J
Matt J il 8 Apr 2019
If you just run
>> mex -setup
it should present you with the compilers that Matlab can actually see. That should provide a clue.

Più risposte (0)

Categorie

Scopri di più su Troubleshooting in MATLAB Compiler SDK in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by