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

[Potentially OT] Linking static and shared libraries...

P: n/a

This is not a language-specific question. I have an executable that is
supposed to link to both static and shared libraries at the same time. Most
of these libraries come in both flavours and the linker is not choosing the
right ones by default. The problem is that when I use options like
'-static' the linker will try too link all libraries as static (which I
don't want). I've tried various combinations of '-static' and '-shared' to
no avail. Does anyone know how to link an executable to both types of
libraries?
Jun 11 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
barcaroller wrote:
This is not a language-specific question. I have an executable that is
supposed to link to both static and shared libraries at the same time. Most
of these libraries come in both flavours and the linker is not choosing the
right ones by default. The problem is that when I use options like
'-static' the linker will try too link all libraries as static (which I
don't want). I've tried various combinations of '-static' and '-shared' to
no avail. Does anyone know how to link an executable to both types of
libraries?
You were correct, this is OT, you will have to ask on a group/forum
dedicated to your tools or OS.

--
Ian Collins.
Jun 11 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.