Re: Probs: include in esql-c
Posted in 1995
It is painful, but so; in many versions prior to 6.00.UC1, you cannot pick up customer-defined ESQL/C header files in other than the current directory (or $INFORMIXDIR/incl/esql or $INFORMIXDIR/incl) using any command line option. It is fixed in 6.00.UC1; you can use -I../incl on the ESQL/C compiler command line to pick up the headers. I haven't checked all the 5.0x versions; the same command line option works with 5.03.UC1 and therefore with any later versions. Yours, Jonathan Leffler (johnl@informix.com) #include <disclaimer.h> }From: c0922@rrzc1.rz.uni-regensburg.de (Klaus Rehm) }Date: 29 Mar 1995 11:41:01 GMT }X-Informix-List-Id: <news.12530> } }How can we include header-files from another directory in esql-c? } }We divided our project into several subdirectories } } top } I } +--------+------+------+ } gen inf40 incl server } }In the "inf40"-subdir are the esql-c files. The "incl"-subdir should be }the place for all include-files. } }So far we couldn't get it to work with our esql-specific include-files }(structure-definitions for database-tables and so on). As a workaround }we linked these include-files into the inf40-subdir. } }Is there really no way to leave database-specific-include-files (what a }word?) in the "incl"-subdir and include them from there.