MATLAB Compiler | ![]() ![]() |
UNIX Workstation
This section examines the system requirements, installation procedures, and configuration procedures for the MATLAB Compiler on UNIX systems.
System Requirements
You cannot install the MATLAB Compiler unless MATLAB 6.5 (Release 13) is already installed on the system. The MATLAB Compiler imposes no operating system or memory requirements beyond those that are necessary to run MATLAB. The MATLAB Compiler consumes a small amount of disk space.
Table 2-1, Requirements for Creating UNIX Applications, shows the requirements for creating UNIX applications with the MATLAB Compiler.
Note Although the MATLAB Compiler supports the creation of stand-alone C++ applications, it does not support the creation of C++ MEX-files. |
Supported ANSI C and C++ UNIX Compilers
gcc
, (except on HP and SGI64)
g++
, on Linux.
Note
For a list of all the compilers supported by MATLAB, see the MathWorks Technical Support Department's Technical Notes at http://www.mathworks.com/support/tech-notes/1600/1601.shtml
|
Known Compiler Limitations. There are several known restrictions regarding the use of supported compilers:
DBL_MIN
in the compiler's float.h
file.
g++
) on Linux, try...catch...end
blocks do not work.
-A debugline:on
option does not work on the GNU C++ compiler (g++
) on Linux because it uses try...catch...end
.
CFLAGS=
in your mbuildopts
file.
Compiler Options Files
The MathWorks provides options files for every supported C or C++ compiler. These files contain the necessary flags and settings for the compiler. This table shows the preconfigured options files that are included with MATLAB for UNIX.
Compiler |
Options File |
System native ANSI compiler |
mexopts.sh |
gcc (GNU C compiler) |
gccopts.sh |
Information on the options files is provided for those users who may need to modify them to suit their own needs. Many users never have to be concerned with the inner workings of the options files.
Locating Options Files
To locate your options file, the mex
script searches the following:
mex
uses the first occurrence of the options file it finds. If no options file is found, mex
displays an error message.
![]() | System Configuration for MEX-Files | Installation | ![]() |