Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> OCCI link problem with gcc2.96 in Redhat7.2, Oracle9.0.1
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? Received on Mon Sep 13 2004 - 01:32:29 CDT