Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Is the Microsoft Visual C++ .Net 2003 7.1 compiler supported by MATLAB 6.5.1 (R13SP1)?

Asked by MathWorks Support Team on 27 Jun 2009

I am trying to use Microsoft Visual C++ .Net 2003 7.1 with the MATLAB Compiler; however, the option file for this compiler is not available. The Microsoft Visual C++ .Net 2003 7.1 is the updated C/C++ compiler for the .NET platform.

0 Comments

MathWorks Support Team

Products

1 Answer

Answer by MathWorks Support Team on 27 Jun 2009
Accepted answer

The Microsoft Visual C++ .Net 2003 7.1 compiler is not officially supported by MATLAB 6.5.1 (R13SP1). However, we do have a patch that will allow you to use MSVC 7.1 with MATLAB and the MATLAB Compiler. This patch is attached below.

Use the following steps to install the patch:

1. Copy the self extracting patch in the root MATLAB directory, which is given by issuing the MATLABROOT command at the MATLAB command prompt. This patch has 2 updated files and 5 new files.

2. Rename the following files:

    $MATLAB\extern\lib\win32\libmatpm.lib
    $MATLAB\extern\include\cpp\stdexcpt.h
    $MATLAB\extern\include\cpp\matmtxif.h

Rename the files to $FILENAME.EXT.old where $FILENAME.EXT is the original filename and extension.

3. Run the patch to extract the updated files. The new files and their destination locations are as follows:

msvc71opts.stp              $MATLAB\bin\win32\mexopts\
msvc71opts.bat              $MATLAB\bin\win32\mexopts\
msvc71engmatopts.bat        $MATLAB\bin\win32\mexopts\
msvc71compp.stp             $MATLAB\bin\win32\mbuildopts\
msvc71compp.bat             $MATLAB\bin\win32\mbuildopts\

The first 3 files mentioned in the above list will provide support for MEX and MATLAB Engine applications. The last 2 files will provide support for the MATLAB Compiler. The self-extracting patch will put the files in their appropriate locations.

4. Run "mbuild -setup" and "mex -setup"

NOTE: This is a temporary patch and has not been fully qualified by MathWorks. If you experience any problems with this patch, contact technical support and mention Solution 1-1BRI9.

0 Comments

MathWorks Support Team

Contact us