User`s guide

External Interfaces/API
22-27
External Interfaces/API
MEX-Files Built with gcc on Linux Must Be Rebuilt
In MATLAB V7.2 (R2006a) on Linux and Linux x86-64 platforms, MEX-files built with
gcc must be recompiled and relinked using gcc version 3.4 or later. Rebuilding is
required because MATLAB V7.2 (R2006a) on Linux and Linux x86-64 platforms is built
with gcc version 3.4.
Compatibility Considerations
Changes in gcc version 3.4 have caused incompatibilities between MATLAB V7.2
(R2006a) and MEX-files built with gcc versions earlier than 3.4.
On Linux and Linux x86-64 platforms, MEX-files built with gcc versions earlier than 3.4
cannot be used in MATLAB V7.2 (R2006a).
On Linux and Linux x86-64 platforms, MEX-files built with gcc version 3.4 or later
cannot be used in versions of MATLAB earlier than V7.2 (R2006a).
MEX-Files in MATLAB for Microsoft Windows x64
With the introduction of MATLAB for Windows x64, you can now build 64-bit MEX-files.
These MEX-files have the extension .mexw64. The mexext command returns mexw64 in
MATLAB for Windows x64.
Compatibility Considerations
MEX-files built using MATLAB for Windows (32-bit), which have.mexw32 extensions by
default, cannot be used in MATLAB for Windows x64.
By default, when MATLAB for Windows x64 is installed, the mex.pl and mex.bat
scripts build MEX-files for a Windows x64 platform (with .mexw64 extensions).
New Microsoft and Intel Compilers Supported
MATLAB V7.2 (R2006a) supports new compilers for building MEX-files on Windows and
Windows x64 platforms: