User`s guide
Building Stand-Alone Applications on PCs
4-21
option into an integrated development environment (IDE) or makefile that you
needtomaintainoutsideofMATLAB. Often, however,itis easier tocall
mbuild
from your makefile. See your system documentationforinformationonwriting
makefiles.
Note Any changes that you make to the local options file compopts.bat will
be overwritten the next time you run
mbuild -setup. If you want to make
your edits persist through repeated uses of
mbuild -setup, you must edit the
master file itself . The master options files are also located in <matlab>\bin.
Combining Customized C and C++ Options Files. The op tio ns files for mbuild have
changed as of MATLAB 5.3 (Release 11) so that the same options file can be
used to cre ate both C and C++ stand-alone applications . I f you have modi fi ed
your own separate options files to create C and C++ applications, y o u can
combine them into o ne options file.
Tocombineyourexisting optionsfilesi nto one universal CandC++optionsfile:
1 Copy from the C++ options file to the C options file all lines that set the
variables
COMPFLAGS, OPTIMFLAGS, DEBUGFLAGS,andLINKFLAGS.
Table 4-3: Compiler Options Files on the PC
Compiler Master Options File
Borland C/C++, Version 5.0
bcccompp.bat
Borland C/C++, Version 5.2
bcc52compp.bat
Borland C/C++, Version 5.3
bcc53compp.bat
Microsoft Visual C/C++, Version 4. 2
msvccompp.bat
Microsoft Visual C/C++, Version 5. 0
msvc50compp.bat
Microsoft Visual C/C++, Version 6. 0
msvc60compp.bat