R12 Release Notes | ![]() ![]() |
Upgrading from an Earlier Release
Recompile Your Programs
Existing C/C++ Math Library Version 2.0 hand-written source code is compatible with the Version 2.1 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.1 of the MATLAB Compiler before using them with the Version 2.1 library. If you do not recompile your program, it will produce a run-time error.
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.1, you must use the empty()
function for indexed deletion.
mbuild Function Now Returns Accurate Error Status
mbuild myprog.c
now throws an error when it encounters an error condition.
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.
To ensure code from before Release 12 works properly in Release 12, either use try/catch
logic to deal with error conditions, or use a form of mbuild
that returns an error status instead of throwing an error. Specifically
try mbuild something.c catch disp(`something failed'); end
status = mbuild(`something.c'); if status ~= 0 disp(`something failed'); end
For More Information
For information about upgrading from a release earlier than 2.0.1, see Release 11 New Features.
![]() | MATLAB C/C++ Math Library 2.1 Release Notes | MATLAB Compiler 2.1 Release Notes | ![]() |