Home » Developer & Programmer » Precompilers, OCI & OCCI » libraries needed to link OCCI using gcc (merged)
libraries needed to link OCCI using gcc (merged) [message #280903] Thu, 15 November 2007 02:55 Go to next message
varuntayur
Messages: 4
Registered: November 2007
Junior Member
Hello,

On executing the below commands

%c++ -c db.cc -I$ORACLE_HOME/rdbms/public -I$ORACLE_HOME/lib32

%c++ db.o $ORACLE_HOME/lib32/libclntsh.so $ORACLE_HOME/lib32/libocci10.a -lstd_v2 -lgen

on HP-UX system ,gcc version 4.1.2 the following errors came up.I know i am missing some shared library.Can anybody give the library i need to link to satisfy the dependency in the linking .

"ld: (Warning) Unsatisfied symbol "__bad_cast_exception" in file /usr/lib/hpux32/libstd_v2.so
ld: (Warning) Unsatisfied symbol "__bad_alloc_exception" in file /usr/lib/hpux32/libstd_v2.so
ld: (Warning) Unsatisfied symbol "__bad_typeid_exception" in file /usr/lib/hpux32/libstd_v2.so
ld: (Warning) Unsatisfied symbol "__bad_exception" in file /usr/lib/hpux32/libstd_v2.so
ld: Unsatisfied symbol "__cxa_finalize" in file /disk2/oracle/product/10.2.0.2.0/lib32/libocci10.a[occiSQLExceptionImpl.o]
ld: Unsatisfied symbol "__cxa_atexit" in file /disk2/oracle/product/10.2.0.2.0/lib32/libocci10.a[occiSQLExceptionImpl.o]
ld: Unsatisfied symbol "__cxa_personality_routine" in file /disk2/oracle/product/10.2.0.2.0/lib32/libocci10.a[occiSQLExceptionImpl.o]
4 warnings.
3 errors.
collect2: ld returned 1 exit status "

Thanks in advance .
Re: Unsatisfied symbols [message #280914 is a reply to message #280903] Thu, 15 November 2007 03:07 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Are you sure this has nothing to do with Oracle?
I never heard about Oracle using/referencing these procedures.

Regards
Michel
Re: Unsatisfied symbols [message #280920 is a reply to message #280914] Thu, 15 November 2007 03:13 Go to previous messageGo to next message
varuntayur
Messages: 4
Registered: November 2007
Junior Member
the file i have used to compile contains only OCCI related calls.
libraries needed to link OCCI using gcc [message #280923 is a reply to message #280903] Thu, 15 November 2007 03:31 Go to previous messageGo to next message
varuntayur
Messages: 4
Registered: November 2007
Junior Member
Hello ,

what are the standard libraries other than libocci10.a and libclntsh.so to be used to successfully compile a file on HP-UX .

I am getting lot of unsatisfied symbols in my compilation.anyone posting the actual libraries or the command to compile it is highly appreciated.
Re: libraries needed to link OCCI using gcc (merged) [message #281195 is a reply to message #280903] Fri, 16 November 2007 01:30 Go to previous message
MarcS
Messages: 312
Registered: March 2007
Location: Antwerp
Senior Member
I don't think (actually I'm pretty sure) this is an Oracle-related problem at all.

The unsatisfied symbols "__cxa_finalize" and "__cxa_atexit" relates to C++ stuff.

Maybe reading the reference manuals on the compiler/linker you are using could give the answer you're looking for.

Or you could post your question on a C++ forum Smile
Previous Topic: undefined symbol
Next Topic: ExtProc: how to unload an external DLL library?
Goto Forum:
  


Current Time: Thu Mar 28 13:29:12 CDT 2024