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 views (last 30 days)
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).

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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.

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!