User`s guide

UNIX Workstation
2-7
ANSI C or C++ Compiler
To install your ANSI C or C++ compiler, follow the vendors instructions that
accompany your C or C++ compiler. Be sure to test the C or C++ compiler to
make sure it is installed and configured properly. Typically, the compiler
vendor provides some test procedures. The following section, Things to Be
Aware of, contains several UNIX-specific details regarding the installation
and configuration of your ANSI C or C++ compiler.
Note On some UNIX platforms, a C or C++ compiler may already be
installed. Check with your system administrator for more information.
Things to Be Aware of
This table provides information regarding the installation and configuration of
a C or C++ compiler on your system.
mex Verification
Choosing a Compiler
Using the System Compiler. If the MATLAB Compiler and your supported C or C++
compiler are installed on your system, you are ready to create C MEX-files. To
create a MEX-file, you can simply enter
mex filename.c
This simple method of creating MEX-files works for the majority of users. It
uses the systems compiler as your default compiler for creating C MEX-files.
Description Comment
Determine which C or C++ compiler
is installed on your system.
See your system administrator.
Determine the path to your C or
C++ compiler.
See your system administrator.