MATLAB: Can I use the Microsoft Visual C++ 2003 Toolkit with MATLAB Compiler 4.0 (R14)

2003ccompilerMATLAB Compilerprofessionaltoolkitvisual

I would like to use the Microsoft Visual C++ 2003 Toolkit with the MATLAB Compiler 4.0 (R14).

Best Answer

The Professional Edition of the Microsoft Visual C/C++ Compiler (Version 6.0 or 7.1) is officially tested and supported by MathWorks for use with MATLAB Compiler 4.0 (R14).
To run the MATLAB Compiler using the Microsoft Visual C++ 2003 Toolkit compiler, do the following (note that this is not a supported configuration):
1. Go to Control Panel/System and select the Advanced tab, press the Environment Variables button and add the settings from vcvars32.bat (found in the root directory of the VC 2003 toolkit) to your PATH, INCLUDE and LIB settings.
2. Type the following at the MATLAB prompt:
mbuild -setup
When MBUILD asks whether you want it to locate your installed compilers, select No (n).
3. When MBUILD asks you to select a compiler, choose Microsoft Visual C/C++ version 7.1.
4. When MBUILD asks you to enter the location of your compiler, enter the full path to the Microsoft Visual C++ Toolkit 2003.
5. When you confirm your compiler's location, you will get warnings about the "Vc7" and "Common7" directories not being found. These are directories from the retail version of Visual Studio .NET that aren't found in the free version of the compiler. You should now be able to run the MATLAB Compiler using the Microsoft Visual C++ 2003 compiler.
For more information on which compilers have been tested by MathWorks, see the following URL: