No supported Visual C/C++ compiler found. Check yo

2019-08-06 13:53发布

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条回答
何必那么认真
2楼-- · 2019-08-06 14:29

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.

查看更多
登录 后发表回答