Home » Developer & Programmer » Precompilers, OCI & OCCI » occi and gcc3.3
occi and gcc3.3 [message #93940] Mon, 05 May 2003 07:16 Go to next message
petra
Messages: 5
Registered: April 2002
Junior Member
Hello,
I have problems with linking the demo-occi-files.
I use gcc3.3 on SuseLinux8.2 and when I try to compile and then to link the demofile containing e.g.

Environment *env=Environment::createEnvironment(Environment::DEFAULT);

I get the linker error
: undefined reference to `oracle::occi::Environment::terminateEnvironment(oracle::occi::Environment*)'

although I link against libocci9 and libclntst9,
the Library-paths are alright. And i can see that in libocci9 there is a function createEnvironment.

Can anyone tell me, where the problem is and how to solve it? There must be a mistake in the installed oracle-libs libocci9.a . Or how can I recompile the libraries?

Thanks in advance ,
Petra
Re: occi and gcc3.3 [message #93947 is a reply to message #93940] Thu, 15 May 2003 16:20 Go to previous messageGo to next message
cheng
Messages: 1
Registered: May 2003
Junior Member
I got the same problems in Redhat 8.0 and Oracle 9.2.0.
I still have not ideas. if you solve this problem?
could you please let me know?
my mail: chengwang30@hotmail.com
Re: occi and gcc3.3 [message #93954 is a reply to message #93947] Thu, 22 May 2003 05:04 Go to previous messageGo to next message
petra
Messages: 5
Registered: April 2002
Junior Member
I haven't found a solution for occi. I suppose the mistake is in the libraries oracle supplied in the database. They must have been compiled with gcc295, they weren't created at runtime. So the mistake must lie in the static declaration of the functions in the header-file occi.h, because I received a similar linker error in another programm I have written. I have written my program now with the help of oci, although it was more complicated to write. I hope Oracle will solve this problem as soon as possible.
Re: occi and gcc3.3 [message #93992 is a reply to message #93954] Tue, 08 July 2003 02:54 Go to previous messageGo to next message
pratap
Messages: 4
Registered: July 2003
Junior Member
i am also facing the same problem
undefined reference to createEnvironment function in libocci9.a
so if anyone of you who knows the solution kindly mail me on pratap14@indiatimes.com
Re: occi and gcc3.3 [message #93993 is a reply to message #93992] Tue, 15 July 2003 01:12 Go to previous messageGo to next message
Neo
Messages: 3
Registered: November 2002
Junior Member
I think ,this is got to do with the gcc versions. I read somewhere that gcc3.2 is not compatible with ABI of gcc2.95.x So i guess we will have to wait till they release a library version for 3.2
Re: occi and gcc3.3 [message #94532 is a reply to message #93993] Sun, 09 January 2005 23:16 Go to previous message
torpedo
Messages: 1
Registered: January 2005
Junior Member
I read tht its can be compielled with g++296
but not yet possible to me
Plz mail me if u got the solution

torpedo@bluebottle.com
Previous Topic: pro*c memset,lenset,nullset
Next Topic: Crash at OCIStmtExecute (C+ Program)
Goto Forum:
  


Current Time: Tue Dec 11 14:56:06 CST 2018