MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manual de Serviço Página 48

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 282
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 47
2
Working with the Target Language
2-28
Input File Control
The input file control directives are:
%include string
%addincludepath string
The %include directive searches the path for the target file specified by string
and includes the contents of the file inline at the point where the
%include
statement appears.
The
%addincludepath directive adds an additional include path to be searched
when the Target Language Compiler references
%include or block target files.
The syntax is:
%addincludepath string
The string can be an absolute path or an explicit relative path. For example,
to specify an absolute path, use:
%addincludepath "C:\directory1\directory2" (PC)
%addincludepath "/directory1/directory2" (UNIX)
%addincludepath "directory1:directory2" (Macintosh)
To specify a relative path, the path must explicitly start with “
.” on the PC or
UNIX, or “
: on the Macintosh. For example:
%addincludepath ".\directory2" (PC)
%addincludepath "./directory2" (UNIX)
%addincludepath ":directory2" (Macintosh)
When an explicit relative path is specified, the directory that is added to the
Target Language Compiler search path is created by concatenating the
location of the target file that contains the
%addincludepath directive and the
explicit relative path.
The Target Language Compiler searches the directories in the following order
for target or include files:
1
The current directory
2
Any %addincludepath directives
3
Any include paths specified at the command line via –I
Vista de página 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 281 282

Comentários a estes Manuais

Sem comentários