| MATLAB Compiler | ![]() |
Changing the Options File
Although it is common to use one options file for all of your Compiler-related work, you can change your options file at anytime. The setup option resets your default compiler so that the new compiler is used every time. Use
to reset your C or C++ compiler for future sessions.
Windows
Modifying the Options File. You can use of the setup option to change your options file settings on Windows. The setup option copies the appropriate options file to your user profile directory.
To modify your options file on Windows:
mbuild -setup to make a copy of the appropriate options file in your local area.
user profile directory to correspond to your specific needs and save the modified file.
After completing this process, the mbuild script will use the new options file every time with your modified settings.
UNIX
The setup option creates a user-specific, matlab directory in your individual home directory and copies the appropriate options file to the directory. (If the directory already exists, a new one is not created.) This matlab directory is used for your individual options files only; each user can have his or her own default options files (other MATLAB products may place options files in this directory). Do not confuse these user-specific matlab directories with the system matlab directory, where MATLAB is installed.
Modifying the Options File. You can use the setup option to change your options file settings on UNIX. For example, if you want to make a change to the current linker settings, or you want to disable a particular set of warnings, you should use the setup option.
To modify your options file on Linux:
mbuild -setup to make a copy of the appropriate options file in your local area.
This sets your default compiler's options file to your specific version.
| Options Files | Compilation Process | ![]() |
© 1994-2005 The MathWorks, Inc.