mex -setup c++ not working

Good afternoon. I have installed Microsoft SDK7.1 and .NET framework 4.0. However, Matlab seems can't find it. and when I run mex -setup c++, it shows error message below:
Error using mex No supported compiler or SDK was found. For options, visit http://www.mathworks.com/support/compilers/R2015a/win32.html.
Could anyone let me know what may cause this error? and how to solve it?
The matlab I am using is Matlab 16a, window 7 system.
THanks.

3 个评论

I don't know if this is a bug or if I'm doing thing wrong, but installing a mex compiler for me only works if the compiler is installed before Matlab is. So my question is, did you already try to re-install Matlab?
Please show the output of
mex -v -setup c++
SDK is not enough. you have to install visual studio (at least community version)
while installing you have to select "C++ desktop app development" option
compiler for matlab.PNG

请先登录,再进行评论。

回答(1 个)

Jan
Jan 2017-2-23
编辑:Jan 2017-2-23

0 个投票

There are a lot of concerning threads in the forum (currently 792 - horryfying!):
Did you select the 64-bit compilers during the installation or are you using a 32 bit Matlab? For me it worked to install the SDK after Matlab.

类别

帮助中心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!

Translated by