MATLAB COMPILER RELEASE NOTES User's Guide Page 92

  • Download
  • Add to my manuals
  • Print
  • Page
    / 264
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 91
4 Stand-Alone Applications
4-22
2 In the C options file, within just those copied lines from step 1, replace all
occurrences of:
-
COMPFLAGS with CPPCOMPFLAGS
- OPTIMFLAGS with CPPOPTIMFLAGS
- DEBUGFLAGS with CPPDEBUGFLAGS
- LINKFLAGS with CPPLINKFLAGS.
This process modifies your C options file to be a universal C/C++ options file.
Temporarily Changing the Compiler. To temporar ily chang e y our C or C ++ compiler,
use the
-f option, as in
mbuild -f <file> …
The -f option tells the mbuild script to use the options f ile, <file>.If<file>
is not in the current directory, th en <file> must be the full pathname to the
desired o ptions file. Using the
-f option tells the mbuild script t o use the
specified options file for the current execution of
mbuild only; it does not reset
the default compiler.
Verifying mbuild
There is C source code for an example, ex1.c,includedinthe
<matlab>\extern\examples\cmath directory, where <matlab> represents the
top-level d irectory where MATLAB i s installed on y our system. To verify that
mbuild is properly configured on your system to create stand-alone
applications, e nte r at the MATLAB p romp t
mbuild ex1.c
This creates the file called ex1.exe. Stand-alone applications created on
Windows 95/98/2000 or Windows NT always have the extension
exe.The
created application is a 32-bit MS-DOS console application.
Shared Libraries
All the libraries (WIN32 Dynamic Link Libraries, or DLLs) for MATLAB, the
MATLAB Compiler, and the MATLAB Math Library are in the directory
<matlab>\bin\win32
The .DEF files for the Microsoft and Borland compilers are in the
<
matlab>\extern\include directory. All of the relevant libraries for building
Page view 91
1 2 ... 87 88 89 90 91 92 93 94 95 96 97 ... 263 264

Comments to this Manuals

No comments