Known Software and Documentation Problems     Search    Help Desk 

MATLAB Compiler

MATLAB Compiler 2.0

Two Versions of the Compiler

Release 11 includes both the MATLAB Compiler 2.0 and the MATLAB Compiler 1.2.1.

The MATLAB Compiler 2.0 is used by default. However, you may want to use the 1.2.1 version of the Compiler to take advantage of some of the optimizations in the MATLAB Compiler 1.2.1. See the Readme file for details.

See the Readme File

Additional information about the MATLAB Compiler is available in the following file:

Don't Install Your C/C++ Compiler in a Directory Whose Name Includes Spaces

The MATLAB 2.0 Compiler may fail to build your executables if the C/C++ compiler you are using with the MATLAB Compiler is installed in a directory whose name contains spaces.

Watcom 10.6 Compiler

If you are using Watcom 10.6, you cannot install the MATLAB C/C++ Math Library in a directory whose name contains special characters such as dashes or dollar signs. For example, installing the MATLABC/C++ Library in a directory named matlab5-3-c would cause a failure because Watcom 10.6 truncates this directory name, which causes problems when trying to build standalone applications.

Microsoft Visual C++ Version 6.0 For Use with mex or mbuild

You can use the Microsoft Visual C++ Version 6.0 compiler with mex or mbuild. When installing MSVC 6.0, if you need to change where this compiler is installed, you must change the location of the Common directory (at the appropriate installer dialog). If you change the location of the VC98 directory from its default setting, the mex and mbuild scripts will not work properly.

MATLAB Compiler 1.2.1

General Information

The MATLAB Compiler 1.2.1 contains numerous bug fixes for small problems.

Note The Watcom and the Microsoft Visual C++ compiler issues discussed above, in the "MATLAB Compiler 2.0" section, also apply to the MATLAB Compiler 1.2.1.

Linking MFC Applications with the C++ Math Library

In order to allow Microsoft Foundation Class (MFC) applications to link against the C++ Math Library, we build the Microsoft Visual C (MSVC) version of the library against the multithreaded DLL versions of the MSVC runtime libraries. The impact of this change is as follows:

Additionally, the MSVC runtime libraries, msvcrt.dll and msvcirt.dll, need to be distributed with any applications created with the C++ Math Library on Visual C++.

Runtime Errors Involving Operands

The Compiler may not always detect runtime errors involving incorrectly typed operands. If you suspect that an error might be occurring within your code, check the MATLAB version first. If the MATLAB version produces no errors, then the Compiler-generated code will work correctly.



[ Previous | Help Desk | Next ]