Name the location of include files
The -I preprocessor option allows you to name a directory where the preprocessor searches for and C include files.
- The preprocessor
(esql) processes only include
files.
You specify these include files with the include preprocessor directive $include or EXEC SQL include.
- The C preprocessor (cc) processes only the C include files.
You specify these files with the #include preprocessor statement. Because the C preprocessing begins after the compilation is completed, the C include files are processed after the include files.
esql -Idirectory esqlcprogram.ec
The directory can be on a mounted remote file system if the standard C library functions fopen(), fread(), and fclose() can access them.
esql -I/usr/johnd/incls demo1.ec
Each -I option lists a single directory. To list several directories, you must list multiple -I options on the command line.
esql -IC:dorrie\incl -IC:\johnd\incls demo1.ec
- The current directory
- The directories that -I preprocessor options specify (in the order in which you specify them on the command line)
- The directory $ONEDB_HOME/incl/esql on a UNIX operating system and the %ONEDB_HOME%\incl\esql in a Windows environment (where $ONEDB_HOME and %ONEDB_HOME% represent the contents of the environment variable of that name)
- The directory /usr/include