User`s guide
External Interfaces/API
23-31
New Preferences Directory and MEX Options
The MATLAB preferences directory has changed. In MATLAB 7.1, the preferences
directory is named R14SP3. In previous R14 releases, the preferences directory was
named R14. For more information, see the documentation for prefdir, which returns the
preferences directory.
Compatibility Considerations
When you install MATLAB 7.1, MATLAB migrates some files from any existing R14
preferences directory to the new R14SP3 directory. However, MATLAB does not migrate
the MEX options file, mexopts.bat. If you want to preserve any MEX options that you
have customized in an earlier R14 release, you need to migrate your options to the new
R14SP3 preferences directory.
You can migrate your MEX options in either of two ways:
• If you have customized only a few options: Invoke mex with the -setup option to
create a new mexopts.bat file in the R14SP3 preferences directory. Edit the new
mexopts.bat file to customize the MEX options there.
• If you have customized many options: Copy your customized mexopts.bat file from
the old R14 preferences directory to the new R14SP3 directory. Edit at least the
settings of the LIBLOC and NAME_OUTPUT linker parameters in the mexopts.bat
file. These lines should look as follows on Windows systems when using a Microsoft
compiler:
set LIBLOC=%MATLAB%\extern\lib\win32\microsoft
set NAME_OUTPUT=/out:"%OUTDIR%%MEX_NAME%%MEX_EXT%"
The LIBLOC parameter has changed because import libraries have moved; see “Import
Libraries Moved” on page 23-32. The value of this parameter depends on the platform
you are running MATLAB on and the vendor of the compiler you are using.
The NAME_OUTPUT parameter has changed because the extension for compiled MEX-Files
has changed on Windows systems; see “New File Extension for MEX-Files on Windows
Systems” on page 23-28.
Compiler Support
The set of compilers that MATLAB supports has changed in MATLAB 7.1. For an up-to-
date list of supported compilers, see the Supported and Compatible Compilers Web page.