2.4 Compiling and Linking a Program

Table of Contents Previous Next


2 Open Client Library : 2.4 Compiling and Linking a Program

The files are installed in the 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 oci/samples subdirectory.
1.
Set the ORACLE_HOME and EDB_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 /lib64.
3.
Set LD_LIBRARY_PATH to include the Advanced Server Open Client library. By default, libiconv.so.2 is located in $EDB_HOME/oci/lib.

2 Open Client Library : 2.4 Compiling and Linking a Program

Table of Contents Previous Next