Release 11 New Features      

API Enhancements for Windows NT

Setting 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.

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,

Finally, you are asked to enter the location of your compiler.



[ Previous | Next ]