不支持Visual C / C ++编译器。检查您的Visual C / C ++的安装 [英] No supported Visual C/C++ compiler found. Check your installation of Visual C/C++

查看:712
本文介绍了不支持Visual C / C ++编译器。检查您的Visual C / C ++的安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Matlab R2013a。当我尝试使用 Simulink Coder 生成 Visual C ++ 代码时,出现问题。



即使我已经在我的电脑上安装了 Visual Studio 2013 ,我也遇到了这个错误。当我看看我的计算机上安装的程序的列表,我看到Visual C ++ 2008,2010和2012.当我键入命令 mex -setup Matlab只是可以看到一个编译器LCC。但是我需要一个Visual C ++编译器(在技术上,我已经有)Matlab看到。



我该怎么做?不是 mex -setup 正确的代码?

解决方案

你需要由于没有添加对Visual C ++ 2013的支持,所以MATLAB R2014a没有添加直到MATLAB R2014a



作为解决方法,您可以使用这个 FileExchange提交添加支持使用Visual C ++ 2013与早期的MATLAB版本构建MEX文件。


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?

解决方案

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.

这篇关于不支持Visual C / C ++编译器。检查您的Visual C / C ++的安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆