Home » Developer & Programmer » Precompilers, OCI & OCCI » OCCI link problem with gcc2.96 in Redhat7.2, Oracle9.0.1
OCCI link problem with gcc2.96 in Redhat7.2, Oracle9.0.1 [message #94372] Sun, 12 September 2004 23:02
Sean Ho
Messages: 1
Registered: September 2004
Junior Member
When I compiled and linked the occi program occidml.cpp with dynamic shared library, all was OK.
But when occidml run, segmentation fault happened.

I'v read a topic that we can build the program with static library to avoid segmentation fault.

So, I recompiled the program and I used the following command to relink it.
/usr/bin/g++ -L/ora9/lib/ -L/ora9/rdbms/lib/ -o occidml occi
dml.o -lclntst9 -locci9 -ldl -lm

But, a lots of errors happened:

/ora9/lib//libocci9.a(occiAnyDataImpl.o): In function `oracle::occi::AnyDataImpl::s
etNull(void)':
occiAnyDataImpl.o(.text+0x2c2c): undefined reference to `OCIAnyDataConvert'
/ora9/lib//libocci9.a(occiAnyDataImpl.o): In function `oracle::occi::AnyDataImpl::g
etDate(void) const':
occiAnyDataImpl.o(.text+0x2cba): undefined reference to `OCIAnyDataAttrGet'
/ora9/lib//libocci9.a(occiAnyDataImpl.o): In function `oracle::occi::AnyDataImpl::s
etBlob(oracle::occi::Blob const &)':
occiAnyDataImpl.o(.text+0x2d83): undefined reference to `OCIAnyDataAttrSet'
/ora9/lib//libocci9.a(occiAnyDataImpl.o): In function `oracle::occi::AnyDataImpl::s
etClob(oracle::occi::Clob const &)':
occiAnyDataImpl.o(.text+0x2e13): undefined reference to `OCIAnyDataAttrSet'
/ora9/lib//libocci9.a(occiAnyDataImpl.o): In function `oracle::occi::AnyDataImpl::s
etBfile(oracle::occi::Bfile const &)':
occiAnyDataImpl.o(.text+0x2ea9): undefined reference to `OCIAnyDataAttrSet'
/ora9/lib//libocci9.a(occiAnyDataImpl.o): In function `oracle::occi::AnyDataImpl::s
etNumber(oracle::occi::Number const &)':
occiAnyDataImpl.o(.text+0x2f4c): undefined reference to `OCIAnyDataAttrSet'
/ora9/lib//libocci9.a(occiAnyDataImpl.o): In function `oracle::occi::AnyDataImpl::s
etDate(oracle::occi::Date const &)':
occiAnyDataImpl.o(.text+0x2ff3): undefined reference to `OCIAnyDataAttrSet'
/ora9/lib//libocci9.a(occiAnyDataImpl.o)(.text+0x30b8): more undefined references t
o `OCIAnyDataAttrSet' follow

Who can help me ? Is the static library libocci9.a with any problem?
Previous Topic: Using OCCI and REF CURSOR
Next Topic: not finding proc compiler
Goto Forum:
  


Current Time: Mon Nov 23 16:46:04 CST 2020