User`s guide
External Interfaces/API
12-23
Compatibility Considerations
To ensure continued support for building your MEX-files, consider upgrading to another
supported compiler. For an up-to-date list of supported compilers, see the Supported and
Compatible Compilers Web page.
-largeArrayDims Option to MEX Will Become Default in Next Release of
MATLAB
In the next release of MATLAB, the mex command will change to use the large-array-
handling API by default. This means the -largeArrayDims option will become the
default.
You do not need to make changes to build and run MEX-files with MATLAB Version 7.11
(R2010b).
Compatibility Considerations
Source for MEX-files built on 64-bit platforms must be updated in order to successfully
build and run with the next release of MATLAB. Review your source MEX-files and mex
build scripts. For information about migrating your MEX-files to use the large-array-
handling API, see Upgrading MEX-Files to Use 64-Bit API.
MEX Function -argcheck Option Removed
Function Option Name What Happens When you use
the Option?
Compatibility Considerations
mex -argcheck option Errors Remove all existing
instances of -argcheck in
build scripts.
The -argcheck option was a strategy for identifying memory corruption caused by a
MEX-file. When you understand the likely causes of memory corruption, you can take
preventative measures in your code or use your debugger to identify the source of errors.
If a binary MEX-file causes a segmentation violation or assertion, it means the MEX-file
attempted to access protected, read-only, or unallocated memory.