Release 11 New Features |
API Enhancements for Windows NT
Setting Up the Compiler Location
MATLAB 5.1 provided a new switch for themex
script. The switch, setup
, allows you to configure the default options file, mexopts.bat
, for your system C compiler. This eliminates the need to reinstall MATLAB if you change compilers for your environment.
You can run the setup
option from either the MATLAB or DOS command prompt, and it can be called anytime to configure the options file.
Executing the setup
option presents a list of compilers whose options files are currently shipped in the bin
subdirectory of MATLAB. This example shows how to select the Microsoft Visual C++ compiler.
C:\mex -setup C compilers [1] Microsoft Visual C++ [2] Borland C/C++ [3] Watcom C/C++ Fortran compilers [4] Microsoft Powerstation [0] None compiler: 1If the selected compiler has more than one options file (because of more than one version of the compiler), you are asked for a specific version. For example,
Which version [1] 4.x [2] 5.x version: 1Finally, you are asked to enter the location of your compiler.
Please enter the location of your C compiler c:\msdev