7.2 Compiling and Linking a Program

Table of Contents Previous Next


7 Open Client Library : 7.2 Compiling and Linking a Program

The files are installed in the connectors/edb-oci/lib subdirectory.
The following example compiles and links the sample program edb_demo.c in a Linux environment. The edb_demo.c is located in the connectors/edb-oci/samples subdirectory.
1.
Set the ORACLE_HOMEEDB_HOME environment variables.
Set ORACLE_HOME to the complete pathname of the Oracle home directory.
Set EDB_HOME to the complete pathname of the home directory.
2.
Set LD_LIBRARY_PATH to the complete path of libpthread.so. By default, libpthread.so is located in /usr/lib.
3.
Set LD_LIBRARY_PATH to include the Advanced Server Open Client library. By default, libiconv.so.2 is located in $EDB_HOME/connectors/edb-oci/lib.

7 Open Client Library : 7.2 Compiling and Linking a Program

Table of Contents Previous Next