Trouble using oracle libraries from a shared library

From: 樂師理 <Leslie>
Date: Tue, 11 Apr 2000 11:28:38 +0800
Message-ID: <38F29BE6.963F9D83_at_jpc.com.tw>


Hello,

I am using aix and Oracle client 7.3. I build a shared c++ library containing my project utilities and I want to link in the Oracle libraries as well. I typically use g++ to compile and link, however, I find that I can not use g++ with the Oracle libraries. I also can not find a way to use the aix xlC and the aix makeC++SharedLib to build a usable shared library that includes the oracle libraries.

I have used both of these methods in the past to build shared libraries that main applications can then link with. However, when I use these methods along with the oracle libraries the main applications blow up when calling the olog procedure.

I found that the Oracle demo client programs use an oracle script - oraxlc - and they work correctly when built in this way. Furthermore, if I use this script to compile and then STATICALLY link my program using this script I have no problems at all. Furthermore, I found that the demo programs blow up on olog if I use g++ to build the demo program.

Lastly, I have found no way to use the oraxlc script to build a shared library.

So, the help I am seeking is to allow any of the above mentioned methods

to work. In order of preference, I would 1) like to use g++, or 2) use straight aix tools (xlC, etc.) so that I am not dependant on a third-party tool set, or, lastly, 3) use oraxlc to do all of my compiling, shared library building, and linking.

Any help is gratefuly appreciated.

Please send any help directly to my e-mail in addition to any replies to

the newsgroup since I am in Taiwan and access to this group is painfully

slow... :)

Leslie Received on Tue Apr 11 2000 - 05:28:38 CEST

Original text of this message