MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Guía de usuario Pagina 200

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 354
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 199
%#external
Purpose Pragma to call arbitrary C/C++ function s from M -code
Syntax %#external
Description The %#external pragma informs MATLAB Compiler that the
implementation version of the function (
Mlxf)willbehandwrittenand
not generated from the M-code. This pragma affects only the single
functi on in which it appears, and any M-function may contain this
pragma (local, global, private, or method).
Note If you compile a program that contains the %#external pragma,
youmustexplicitlypasseachfilethatcontainsthispragmaonthe
mcc
command line.
When using this pragma, MATLAB Compiler will generate an
additional header file called
fcn_external.h,wherefcn is the name
of the initial M-function containing the
%#external pragma. This
header file will contain the
extern declaration of the function that the
user m ust provide. This function must conform to the same interface
as code generate d by MATLAB Compiler. For more information on the
%#external pragma, see “Interfacing M-Code to C/C++ Code” on page
5-13.
11-2
Vista de pagina 199
1 2 ... 195 196 197 198 199 200 201 202 203 204 205 ... 353 354

Comentarios a estos manuales

Sin comentarios