Jump to content


EnterpriseDB

Previous PageTable Of ContentsNext Page

3.1.3 Compilation and Linking

When compiling the preprocessed C code files, the compiler needs to be able to find the ECPG header files in the Postgres Plus Advanced Server include directory. Therefore, it may be necessary to use the -I option when invoking the compiler:

(e.g., -I $EDB_HOME/dbserver/include/).

.

Programs using C code with embedded SQL have to be linked against the -lpgtypes library, for example using the linker options (on Linux):

(e.g. -L $EDB_HOME/dbserver/lib -lpgtypes)

The above paths are valid on Linux. They may vary on other platforms.

Previous PageTable Of ContentsNext Page

Powered by Transit