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

recursive linking to shared object files

P: n/a
Hi all,

I'm not very much of a C expert, so I hope one of you is willing to
help me out.

What I'm trying to do is create a shared object library SO1, to which
an executable E is already linked. The problem here is that SO1 itself
links to another shared object library SO2. Result is that E is not
linked to SO2 and I get the problem of undefined symbols at runtime...

The problem is that there is no static library available of SO2, and I
cannot generate E to make it also link to SO2, next to SO1.

Is it at all possible to make this construction work, considering that
the only thing I can re-compile/re-link is SO1? Can I somehow combine
SO1 and SO2? Can I make E link with SO2 with just access to the
executable? Any other suggestions?

If anyone is willing to help me, I greatly appreciate it!

Riccardo Sirchia

Nov 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <11**********************@e3g2000cwe.googlegroups. com>,
<si*******@gmail.comwrote:
>What I'm trying to do is create a shared object library SO1, to which
an executable E is already linked. The problem here is that SO1 itself
links to another shared object library SO2. Result is that E is not
linked to SO2 and I get the problem of undefined symbols at runtime...
What you describe is not an uncommon problem. Unfortunately, the
C standards do not know anything about shared libraries or about
how linking is done or about executables as such or what they should
look like internally. Your problem is thus specific to the tool set
you are using on your operating system, and has no general answer.
On some systems you can fix the problem and on others you cannot.
You will need to consult your system documentation or a newsgroup
that deals with development for your particular operating system.
--
All is vanity. -- Ecclesiastes
Nov 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.