【问题标题】:MATLAB Could not find the compiler "cl" on the DOS pathMATLAB 在 DOS 路径上找不到编译器“cl”
【发布时间】:2016-06-18 07:38:13
【问题描述】:

我正在使用 Matlab 2009b 64 位,并安装了 Microsoft Visual Studio 2008 Express 用于编译器(但它只是安装在 C:\Program Files (x86)\Microsoft Visual Studio 9.0\Microsoft Visual C++ 2008 Express Edition 中的 32 位SP1-ENU)。 然后我在 Matlab 中混合一个文件,它有错误:

Error: Could not find the compiler "cl" on the DOS path. 
         Use mex -setup to configure your environment properly.

...MATLAB\BIN\MEX.PL: Error: Unable to locate compiler.

有人有这个问题吗?分享你的实验来解决它。谢谢!

【问题讨论】:

  • 你为什么要用这么老版本的Matlab?您的 Windows 版本是多少?

标签: matlab image-processing mex


【解决方案1】:

最后,我解决了这个问题。关键是编译器 32 位(例如 Microsoft Visual Studio 2008 Express)与 Matlab 64 位不兼容。所以,我删除了 Matlab 64bit,然后安装了 Matlab 32bit 来解决这个问题。这工作太棒了。

【讨论】:

    猜你喜欢
    • 2017-12-03
    • 1970-01-01
    • 2011-12-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-26
    • 1970-01-01
    • 2017-04-23
    相关资源
    最近更新 更多