问题
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