No supported compiler was found.
显示 更早的评论
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 个评论
Walter Roberson
2019-4-8
Perhaps you need to mex -setup C
Nicolas Bourbaki
2019-7-21
编辑:Nicolas Bourbaki
2019-7-21
Walter Roberson
2019-7-21
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
2020-12-1
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
2020-12-1
编辑:Nicolas Bourbaki
2020-12-1
Walter Roberson
2020-12-1
By the way, Visual Studio does not install the C compiler by default.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!