Technical Solutions
Is the Microsoft Visual C++ .Net 2003 7.1 compiler supported by MATLAB 6.5.1 (R13SP1)?
Date Last Modified: Friday, June 26, 2009
| Solution ID: |
|
1-1BRI9 |
| Product: |
|
MATLAB Compiler |
| Reported in Release: |
|
R13sp1 |
| Platform: |
|
Windows |
| Operating System: |
|
Windows Any |
Subject:
Is the Microsoft Visual C++ .Net 2003 7.1 compiler supported by MATLAB 6.5.1 (R13SP1)?
Problem Description:
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.
Solution:
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 The MathWorks. If you experience any problems with this patch, contact technical support and mention Solution 1-1BRI9.
|
Related Documents/Files: