Syntax

-J directory

The -J option adds directory to the end of the list of directories to search for source files included (using triangular brackets) by the #include preprocessor command.

Example

For example, to tell the compiler to search the directories ../include and ../lib/include for included system files when compiling file.c and writing the output to file.hzo you could use the following:

hcc -J../include -J../lib/include file.c -o file.hzo file.c