occi and gcc3.3 [message #93940] |
Mon, 05 May 2003 07:16 |
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 #93954 is a reply to message #93947] |
Thu, 22 May 2003 05:04 |
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 #93993 is a reply to message #93992] |
Tue, 15 July 2003 01:12 |
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
|
|
|
|