【问题标题】:Matlab cannot find the C/C++ compiler although I have it installed尽管我已经安装了 Matlab,但找不到 C/C++ 编译器
【发布时间】:2016-10-08 16:16:40
【问题描述】:

我正在尝试在 matlab 中运行 mex -setup,但它给了我以下错误

>> mex -setup
Error using mex
No supported compiler or SDK was found. For options, visit...     

我查看了我的 matlab(2015a) 版本支持的编译器,并声明 here 支持“Microsoft Visual C++ 2013 专业版”。我查看了我的程序,发现“Microsoft Visual C++ 2013 Redistributable”。

我的问题是它们是一样的吗?如果它们相同,为什么我的 Matlab 找不到编译器?

【问题讨论】:

  • 如果您不编译成独立程序,可再发行组件只是需要的 DLL 组件。您将需要安装编译器。

标签: c++ matlab


【解决方案1】:

通常你在 Matlab 中使用 lcc-win。它应该与 Matlab 一起提供(如果没有,您可以从 Jacob Navia https://www.cs.virginia.edu/~lcc-win32/ 获得它)。虽然您安装了 MS Visual Studio,但 Matlab 没有找到它 - 也许可再发行组件与 Matlab 需要的版本不同,或者您需要告诉它路径。但是 lcc-win 是大多数 Matlab 用户走的路线,而且出错的可能性较小。

【讨论】:

  • 我的matlab版本不支持c++
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-05-18
  • 1970-01-01
  • 2020-03-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多