User`s guide
20 MATLAB C/C++ Math Library 2.2 Release Notes
20-4
Upgrading from an Earlier Release
There are no upgrade issues moving from the MATLAB C/C++ Math Library
2.1 (Release 12.0) to the MATLAB C/C++ Math Library 2.2 (Release 12.1).
The following issues are involved in upgrading from the MATLAB C/C++ Math
Library 2.0 (Release 11) to the MATLAB C/C++ Math Library 2.2.
Recompile Your Programs
Existing C/C++ Math Library Version 2.0 hand-written source code is
compatible with the Version 2.2 library, but you must recompile your code.
Additionally, any M-files which were compiled with Version 2.0 of the
MATLAB Compiler must be recompiled with Version 2.2 of the MATLAB
Compiler before using them with the Version 2.2 library. If you do not
recompile your program, it will produce a run-time error.
Changed Features
Empty Arrays
In Version 2.0 of the C++ Math Library, any empty array could be used as an
indexed deletion operator. In Version 2.2, you must use the
empty() function
for indexed deletion.
mbuild Function Now Returns Accurate Error Status
The mbuild syntax
mbuild myprog.c
now throws an error when it encounters an error condition.
The
mex syntax
stat = mbuild('myprog.c')
now returns a nonzero value to stat when it encounters an error condition.
In the past, on Microsoft Windows platforms,
mbuild always either successfully
exited or returned zero (indicating success), regardless of whether an error had
actually occurred.