Building Stand-Alone Applications on PCs
4-19
Changing Compilers
Changing the Default Compiler. To change your default C or C++ compiler, you
select a different options file. You can do this at anytime by using the
setup
command.
This example shows the process of changing your default compiler to the
Microsoft Visual C/C++ Version 6.0 compiler.
mbuild -setup
Please choose your compiler for building stand-alone MATLAB
applications.
Would you like mbuild to locate installed compilers [y]/n? n
Select a compiler:
[1] Borland C++Builder version 5.0
[2] Borland C++Builder version 4.0
[3] Borland C++Builder version 3.0
[4] Borland C/C++ version 5.02
[5] Borland C/C++ version 5.0
[6] Borland C/C++ (free command line tools) version 5.5
[7] Lcc C version 2.4
[8] Microsoft Visual C/C++ version 6.0
[9] Microsoft Visual C/C++ version 5.0
[10] Microsoft Visual C/C++ version 4.2
[0] None
Compiler: 8
Your machine has a Microsoft Visual C/C++ compiler located at
D:\Applications\Microsoft Visual Studio. Do you want to use this
compiler [y]/n? y
Would you like to link with the C/C++ Graphics Library?([y]/n): y
Please verify your choices:
Compiler: Microsoft Visual C/C++ 6.0
Location: D:\Applications\Microsoft Visual Studio
Comments to this Manuals