Controlling the Preprocessor
2-25
C Compiler Description
2.5.3 Changing the #include File Search Path With the
−
i Option
The
−
i option names an alternative directory that contains #include files. The
format of the
−
i option is:
−
i
directory1
[
−
i
directory2
...]
You can use up to 32
−
i options per invocation of the compiler; each
−
i option
names one
directory
. In C source, you can use the #include directive without
specifying any directory information for the file; instead, you can specify the
directory information with the
−
i option. For example, assume that a file called
source.c is in the current directory. The file source.c contains the following
directives statement:
#include ”alt.h”
Assume that the complete pathname for alt.h is:
UNIX
/6xtools/files/alt.h
DOS or OS/2
c:\6xtools\files\alt.h
The table below shows how to invoke the compiler. Select the command for
your operating system:
Operating System
Enter
DOS or OS/2
dspcl −ic:\dsp\files source.c
UNIX
dspcl −i/dsp/files source.c
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...