MATLAB 5.1 Enhancements (Release 11 New Features)
Release 11 New Features
if ((parent.frames.lengthSetting Up the Compiler Location
MATLAB 5.1 provided a new switch for the mex 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: 1
If 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: 1
Finally, you are asked to enter the location of your compiler.
Please enter the location of your C compiler c:\msdev
[ Previous | Next ]
Wyszukiwarka
Podobne podstrony:
ch35ch35!ch35ch35CH35 (4)ch35CH35ch35ch35ch35ch35ch35ch35ch35&ch35#ch35ch35więcej podobnych podstron