I'm trying to compile a library but some macros are missing. I want to add these macros, which are located in a header file, during compile time. gcc has an include option like below:
gcc ... -include <macros.h> ...
How could I achieve this in QNX? I couldn't find an qcc option to add header file.
In case you would like to define a path to the headers file to include, you have to use the
-Ioption by defining where the header files are located:Otherwise, in case you don't want to insert the
#includedirective in every file that uses the macros defined in a specific header file, you can use the following compiler option:In this way you are telling to the compiler that during the preprocessing phase (
-Wp) it has to include the header file specified after the-includeargument.