User`s guide

2 Installation and Configuration
2-8
ANSI C or C++ Compiler
To install your ANSI C or C++ compiler, follow the vendor’s 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++compilerareinstalledonyo u rsystem,youarere ad y tocreateCMEX-file s.
To create a MEX-file, y ou can simply ente r
mex filename.c
This simple method of creating MEX-files works for the majority of users. It
uses the system’s compiler as your default compiler for creating C MEX-files.
Description Comment
Determinewhich 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.