linking problems with several static libraries
Omer Zak
w1 at zak.co.il
Wed Jul 10 21:43:54 IDT 2013
On Wed, 2013-07-10 at 21:31 +0300, Diego Iastrubni wrote:
> My program needs liba, which in turn needs libb.. which in turn needs libk.
> The last libk needs symbols from liba.. and this is where it gets funky. While
> linking g++ complains that symbols are missing ... and from ar+nm I see that
> those symbols are avarilable on liba.
You did not say if those libraries are your employer's or provided by
3rd parties.
If the libraries are your employer's, then the long range solution is to
restructure (another term is refactor) them to eliminate the circular
dependencies from which you suffer.
This would also make it possible to develop unit tests for the libraries
and for your project in general.
If the libraries are provided by a 3rd party, then report a bug (!)
against them, and have them refactor the libraries to fix the bug.
--- Omer
--
There is no IGLU Cabal because.
My own blog is at http://www.zak.co.il/tddpirate/
My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html
More information about the Linux-il
mailing list