469,950 Members | 2,061 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

Static to Dynamic linking

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
SUNW,Ultra-250
Oracle version: Oracle 8 or 9.

Appreciate if you can give any suggestion.
Thanks for the co-operation.
Regards,
Dibyendu
Jul 19 '05 #1
0 2093

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by BekTek | last post: by
6 posts views Thread by Andrew S. Giles | last post: by
5 posts views Thread by info | last post: by
2 posts views Thread by amarok | last post: by
6 posts views Thread by gs | last post: by
reply views Thread by Dibyendu Roy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.