MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guide de l'utilisateur Page 214

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 354
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 213
mbuild
Note MBUILD can also create shared libraries from C source code.
If a file with the extension
.exports is passe d to MBUILD, a shared
library is built. The
.exports fi le must be a text file, with each line
containing either an expo rted symbol name, or starting with a
# or *
in the first column ( in which case it is treated as a comment line). If
mult iple
.exports files are specified, all sym bol names in all speci fi ed
.exports files are exported.
Examples To set up or change the default C/C++ compiler for use with MATLAB
Compiler, use
mbuild -setup
To create a shared library named libfoo,use
mcc -W lib:libfoo -T link:lib foo.m
To compile and link an external C program foo.c against lib foo,use
mbuild foo.c -L. -lfoo (on UNIX)
mbuild foo.c libfoo.lib (on Windows)
This assumes both foo. c and the library g enerated above are in the
current w orking directory.
11-16
Vue de la page 213
1 2 ... 209 210 211 212 213 214 215 216 217 218 219 ... 353 354

Commentaires sur ces manuels

Pas de commentaire