INCLUDE

Specifies the path to search for the C/C++ header files on Windows when using C API in Lycia.

 

Syntax:

 

INCLUDE=<path to folder>

 

Usage and examples:

 

With Lycia's C API, you can use the #include directive in the ordinary way - to tell the C/C++ preprocessor to treat the contents of the specified file as if they appear in the program at the point where the directive appears.

 

In this case you must set the INCLUDE environment variable and add the paths to search for the necessary C/C++ header files:

 

INCLUDE=C:\Program Files\Querix\Lycia 3 Development Suite 7.1\Lycia\my_c_files

INCLUDE=$LYCIA_DIR\my_c_files;$INCLUDE

 

INCLUDE applies at compilation and must be set in env.properties.

If you work with Lycia Command Line and use the qxcc command to compile the C/C++ source files, you must set INCLUDE in the command line environment as well (in environ.bat).

 

On Linux , you set the CPATH, C_INCLUDE_PATH, and CPLUS_INCLUDE_PATH environment variables.

 

 

Related articles:

Using C API in Lycia

Command Line Tools - Compiling and linking C source files

qxcc