Why do I receive a "Could not find the compiler '<compiler name>' on the DOS path." error when building COM objects in MATLAB 7.0.1 (R14SP1)?
2 次查看(过去 30 天)
显示 更早的评论
I am trying to create a COM component using the MATLAB Builder for COM 1.1.2 (R14SP1) with the Microsoft Visual Studio 9.0 Compiler. However, I receive the following error message at the MATLAB command prompt at compile time:
Could not find the compiler "cl" on the DOS path.
Use mex -setup to configure your environment properly.
C:/MATLAB701/BIN/WIN32//../WIN32/MEX.PL: Error: Unable to locate compiler.
Error: An error occurred while shelling out to mbuild (error code = 1).
采纳的回答
MathWorks Support Team
2009-6-27
This happens because Microsoft Visual Studio Compiler (MSVC) 9.0 is not a supported compiler for the MATLAB Builder for COM 1.1.2 (R14SP1).
A list of supported compilers for MATLAB 7.0.1 (R14SP1) may be found at the following URL:
<http://www.mathworks.com/support/compilers/1601_70.html>
As a workaround, use either the MSVC 6.0 Professional Edition with MATLAB 7.0.1 (R14SP1) or uprgrade to MATLAB 7.7 (R2008a) to be able to use the MSVC 9.0 compiler.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!