Error using mex No supported compiler or SDK was found.

问题:windows10系统,已安装Visual Studio 2015 和 Matlab2017a,Matlab运行中遇到错误:

“Error using mex No supported compiler or SDK was found.”


百度、google了非常多的方法,始终没有解决。卸载Visual Studio和Matlab,然后重装依然没有用。


最终解决方法:

发现在安装Visual Studio 2015是默认是不安装C++相关文件的,运行安装文件,选择修复,勾选编程语言中的VC++,等待安装完成,重启Matlab,在命令行输入:

mex -setup  ,显示如下:


完美解决~

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章