Home » Developer & Programmer » Precompilers, OCI & OCCI » Linking problem in OCCI/C++ program
icon5.gif  Linking problem in OCCI/C++ program [message #150957] Mon, 12 December 2005 05:07 Go to next message
manav.sah
Messages: 15
Registered: September 2005
Location: India
Junior Member

hi!.
i m trying to compile the anc OCCI/C++ program that simply establish connection using the CreateEnvironment() function call
i m compiling the program as follow :-
g++ ./occi1.cc -I/opt/ora9/product/9.2/rdbms/demo/ -I/opt/ora9/product/9.2/rdbms/public/ -c
and getting the object file successfully but when i m linking this as
g++ ./occi1.o /opt/ora9/product/9.2/lib/libocci.so.10.1 /opt/ora9/product/9.2/lib/libclntsh.so
i m getting following error..
pls kindly hepl me how to remove these error...

/opt/ora9/product/9.2/lib/libocci.so.10.1: undefined reference to `OCIPGetTZI'
/opt/ora9/product/9.2/lib/libocci.so.10.1: undefined reference to `OCIPAnyDataSetUCIOptMode'
/opt/ora9/product/9.2/lib/libocci.so.10.1: undefined reference to `lfpinit'
/opt/ora9/product/9.2/lib/libocci.so.10.1: undefined reference to `OCIPAnyDataSetNull'
/opt/ora9/product/9.2/lib/libocci.so.10.1: undefined reference to `OCIPGetRidCharLen'
/opt/ora9/product/9.2/lib/libocci.so.10.1: undefined reference to `OCIPAnyDataSetFlag'
/opt/ora9/product/9.2/lib/libocci.so.10.1: undefined reference to `OCIPGetErrorMessageNLS'
/opt/ora9/product/9.2/lib/libocci.so.10.1: undefined reference to `OCIPGetRowid'
/opt/ora9/product/9.2/lib/libocci.so.10.1: undefined reference to `OCIPSetObjectPtrNull'
/opt/ora9/product/9.2/lib/libocci.so.10.1: undefined reference to `OCIPDefConvOCCI'
collect2: ld returned 1 exit status



thanks in advance....
Best Regards
Manav sah
Re: Linking problem in OCCI/C++ program [message #150970 is a reply to message #150957] Mon, 12 December 2005 06:18 Go to previous message
kmohan
Messages: 28
Registered: July 2005
Junior Member
You can't mix and match 9.2 and 10.1 libraries. And note that OCCI 9.2 requires you to use gcc2.96.
Previous Topic: occi resultset row count
Next Topic: CURSOR FETCH ERROR SQL-02112
Goto Forum:
  


Current Time: Fri Mar 29 07:06:10 CDT 2024