Compiling and Linking a Program¶
The EDB Open Client Library allows applications written using the Oracle Call Interface API to connect to and access an EDB database with minimal changes to the C source code. The EDB Open Client Library files are named:
The files are installed in the
Compiling and Linking a Sample Program
The following example compiles and links the sample program
in a Linux environment. The
edb_demo.c is located in the
- Set the
ORACLE_HOMEto the complete pathname of the Oracle home directory.
EDB_HOMEto the complete pathname of the home directory.
LD_LIBRARY_PATHto the complete path of
libpthread.so. By default,
libpthread.sois located in
LD_LIBRARY_PATHto include the Advanced Server Open Client library. By default,
libiconv.so.2is located in
- Then, compile and link the OCL API program.