Problem using occi libraries in SuSE 10 gcc 4.0
Hi, I am using SuSE 10 with gcc-4.0. I am building an application with oracle - occi library. The occi library was linked with libstdc++.so.5 and my gcc 4.0 is linking the program with libstdc++.so.6. The compilation and linking is ok but at runtime it gives me exception in occi resultset getString funtion. A search on google says that we need link the application with libstdc++.so.5. Can u use gcc-4.0 to link the application with libstdc++.so.5?( The libstdc++.so.5 is available in SuSE 10) or do we need to install gcc-3.2 in SuSE 10. Please help me out. Thankyou very much in advance.
On Mon, 21 Nov 2005 13:04:35 +0530, Chaitanya Chalasani wrote:
Can u use gcc-4.0 to link the application with libstdc++.so.5?( The libstdc++.so.5 is available in SuSE 10)
You can't even compile it with gcc 4.0 as the C++ ABI changed.
or do we need to install gcc-3.2 in SuSE 10.
Exactly. You need to compile and link your application with that older version of gcc. Philipp
Chaitanya Chalasani
Hi,
I am using SuSE 10 with gcc-4.0. I am building an application with oracle - occi library. The occi library was linked with libstdc++.so.5 and my gcc 4.0 is linking the program with libstdc++.so.6. The compilation and linking is ok but at runtime it gives me exception in occi resultset getString funtion.
A search on google says that we need link the application with libstdc++.so.5. Can u use gcc-4.0 to link the application with libstdc++.so.5?( The libstdc++.so.5 is available in SuSE 10)
No, this is not possible.
or do we need to install gcc-3.2 in SuSE 10.
You need to use gcc 3.2, Andreas -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
On Monday 21 November 2005 10:00, Andreas Jaeger wrote:
Chaitanya Chalasani
writes: Hi,
I am using SuSE 10 with gcc-4.0. I am building an application with oracle - occi library. The occi library was linked with libstdc++.so.5 and my gcc 4.0 is linking the program with libstdc++.so.6. The compilation and linking is ok but at runtime it gives me exception in occi resultset getString funtion.
A search on google says that we need link the application with libstdc++.so.5. Can u use gcc-4.0 to link the application with libstdc++.so.5?( The libstdc++.so.5 is available in SuSE 10)
No, this is not possible.
or do we need to install gcc-3.2 in SuSE 10.
You need to use gcc 3.2,
Or 3.3. I believe the gcc project managed to keep a stable abi for all versions using libstdc++.so.5
participants (4)
-
Anders Johansson
-
Andreas Jaeger
-
Chaitanya Chalasani
-
Philipp Thomas