No supported Visual C/C++ compiler found. Check your installation of Visual C/C++

给你一囗甜甜゛ 提交于 2019-12-13 02:26:10

问题


I am using Matlab R2013a. The problem appears when I try to use Simulink Coder to generate Visual C++ code.

I've got this error even though I have Visual Studio 2013 installed on my computer already. When I look at list of programs that are installed on my computer I see Visual C++ 2008, 2010 and 2012. When I type the command mex -setup Matlab just can see a compiler LCC. But I need a Visual C++ compiler (which , technically, I already have) seen by Matlab.

How can I do that? Isn't mex -setup the right code?


回答1:


You need MATLAB R2014a since support for Visual C++ 2013 was not added until MATLAB R2014a.

As a workaround, you can use this or this FileExchange submission to add support for building MEX files using Visual C++ 2013 with earlier MATLAB version.



来源:https://stackoverflow.com/questions/22566995/no-supported-visual-c-c-compiler-found-check-your-installation-of-visual-c-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!