By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,870 Members | 1,603 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,870 IT Pros & Developers. It's quick & easy.

Static to Dynamic linking

P: n/a
Hi All,
I build an object called "dblorcle" to connect to oracle database
in Sun solaris box. This is built linking with various oracle ".a"
(archived, for static linking) files come with standard oracle
library. I use the following command while linking:

ld -L(oracle lib path) -lnetv2 -lnttcp -lnetwork -lncr -lnetv2 -lnttcp
-lnetwork -lclient -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4

For each element starting with -l has corresponding .a file in the
oracle lib path. For example, for -lcommon there is libcommon.a file.

My requirement is:
To build the object without using statically linked library files.
Only shared objects should be used to dynamically link instead.

Could you please suggest me if there is any standard .so (shared
object) file available corresponding the each .a file.

Or if there is any other way I can build my object without using .a
file so that it can run with dynamic linking.

Solaris version: SunOS 5.6 Generic_105181-05 sun4u sparc
Oracle version: Oracle 8 or 9.

Appreciate if you can give any suggestion.
Thanks for the co-operation.
Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.