Options Files

Locating the Options File

Windows Operating System

To locate your options file on Windows, the mbuild script searches the following locations:

mbuild uses the first occurrence of the options file it finds. If no options file is found, mbuild searches your machine for a supported C compiler and uses the factory default options file for that compiler. If multiple compilers are found, you are prompted to select one.

User Profile Directory Under Windows.   The Windows user profile directory is a directory that contains user-specific information such as desktop appearance, recently used files, and Start menu items. The mbuild utility stores its options files, compopts.bat, which is created during the -setup process, in a subdirectory of your user profile directory, named Application Data\MathWorks\MATLAB\current_release. Under Windows with user profiles enabled, your user profile directory is %windir%\Profiles\username. Under Windows with user profiles disabled, your user profile directory is %windir%. You can determine whether or not user profiles are enabled by using the Passwords control panel.

UNIX Operating System

To locate your options file on UNIX, the mbuild script searches the following locations:

mbuild uses the first occurrence of the options file it finds. If no options file is found, mbuild displays an error message.

Changing the Options File

Although it is common to use one options file for all of your MATLAB 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. To reset your C or C++ compiler for future sessions, use

mbuild -setup

Windows Operating System

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:

  1. Use mbuild -setup to make a copy of the appropriate options file in your local area.

  2. Edit your copy of the options file in your 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 Operating System

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 the Linux operating system:

  1. Use mbuild -setup to make a copy of the appropriate options file in your local area.

  2. Edit your copy of the options file to correspond to your specific needs and save the modified file.

This sets your default compiler's options file to your specific version.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS