Known Software and Documentation Problems     Search    Help Desk 

MATLAB C/C++ Math Library

MATLAB C/C++ Math Library 2.0

Two Versions of the Library

Release 11 includes both the MATLAB C/C++ Math Library 2.0 and the MATLAB C/C++ Math Library 1.2.1.

If you are upgrading from the MATLAB 1.2.1 C Math Library, for 2.0 you are getting an upgrade that includes the MATLAB 2.0 C++ Math Library as well, for no additional charge.

The MATLAB C/C++ Math Library 2.0 is used by default. However, if you are using existing code that depends on the MATLAB 5.2 Application Program Interface (API), then you should use the MATLAB C/C++ Math Library 1.2.1.

See the Release Notes Files

Additional information about the MATLAB C Math Library is available in the following file:

Additional information about the MATLAB C++ Math Library is available in the following file:

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 C/C++ Math Library 1.2.1

General Information

The MATLAB C/C++ Math Library 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 C/C++ Math Library 2.0" section, also apply to the MATLAB C/C++ Math Library 1.2.1.

Recompiling Your Application

If you are a MATLAB C/C++ Math Library Version 1.2 user, you must recompile your existing applications with the 1.2.1 versions of the header files and libraries.

Improved Usability for mbuild

The mbuild tool now automatically detects:

The -setup option is still available, but you no longer need to run
mbuild -setup to build your first application or to change languages.

Options files are no longer language-dependent.

Linking with libmmfile

If your application calls MATLAB M-File Math Library functions, you must link with libmmfile. In previous versions, linking with libmmfile was optional.

Note that this release reduces the size of libmmfile, so your application will require less memory.

Linking MFC Applications with the MATLAB C/C++ Math Library

In order to allow MFC applications to link against the MATLAB C++ Math Library, we build the 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 MATLAB C++ Math Library on Visual C++.



[ Previous | Help Desk | Next ]