Download mcc - Parent Directory

Transcript
Configuring Your Options File with mbuild
1: matlabroot/bin/mbuildopts.sh :
Build and link with MATLAB C-API or MATLAB Compiler-generated
library via the system ANSI C/C++ compiler
matlabroot/bin/mbuildopts.sh is being copied to
/home/user/.matlab/current_release/mbuildopts.sh
The preconfigured options file for UNIX is mbuildopts.sh, which uses gcc
for Linux and Macintosh®.
See the reference page for more information about mbuild. For examples of
mbuild usage, see “Compiling the Driver Application” on page 8-21.
Locating and Customizing the Options File
• “Locating the Options File” on page 2-11
• “Changing the Options File” on page 2-12
Locating the Options File
Windows Operating System. To locate your options file on Windows, the
mbuild script searches the following locations:
• Current folder
• The user profile folder
mbuild uses the first occurrence of the options file it finds. If it finds no
options file, mbuild searches your machine for a supported C compiler and
uses the factory default options file for that compiler. If mbuild finds multiple
compilers, it prompts you to select one.
The Windows user profile folder contains user-specific information
such as desktop appearance, recently used files, and Start menu
items. The mbuild utility stores its options files, compopts.bat,
in a subfolder of your user profile folder, named Application
Data\MathWorks\MATLAB\current_release.
2-11