MATLAB 在 DOS 路径上找不到编译器 "cl"
MATLAB Could not find the compiler "cl" on the DOS path
我使用的是 Matlab 2009b 64 位,我安装了 Microsoft Visual Studio 2008 Express 编译器(但它只安装在 32 位 C:\Program Files (x86)\Microsoft Visual Studio 9 .0\Microsoft Visual C++ 2008 Express Edition with SP1 - ENU)。
然后我在 Matlab 中 mex 一个文件,它有错误:
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.
有人遇到过这个问题吗?分享你的实验来解决它。谢谢!
最后,我解决了这个问题。关键是 32 位编译器(例如 Microsoft Visual Studio 2008 Express)与 Matlab 64 位不兼容。所以,我删除 Matlab 64 位,然后安装 Matlab 32 位来解决这个问题。这项工作真棒。
我使用的是 Matlab 2009b 64 位,我安装了 Microsoft Visual Studio 2008 Express 编译器(但它只安装在 32 位 C:\Program Files (x86)\Microsoft Visual Studio 9 .0\Microsoft Visual C++ 2008 Express Edition with SP1 - ENU)。 然后我在 Matlab 中 mex 一个文件,它有错误:
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.
有人遇到过这个问题吗?分享你的实验来解决它。谢谢!
最后,我解决了这个问题。关键是 32 位编译器(例如 Microsoft Visual Studio 2008 Express)与 Matlab 64 位不兼容。所以,我删除 Matlab 64 位,然后安装 Matlab 32 位来解决这个问题。这项工作真棒。