Re: linking problems with several static libraries

2013-07-13 Thread Diego Iastrubni
On שבת, 13 ביולי 2013 21:42:12 Valery Reznic wrote: > >And I was under impression that "ld" was supposed to handle such kind of > >cyclic dependencies. > > ld indeed able to handle it. > > From ld man page: > -( archives -) --start-group archives --end-group The archives should be a > list of ar

Re: linking problems with several static libraries

2013-07-12 Thread Diego Iastrubni
On יום רביעי, 10 ביולי 2013 21:43:54 Omer Zak wrote: > 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++ complai

Re: linking problems with several static libraries

2013-07-10 Thread Oleg Goldshmidt
Oron Peled writes: > On Wednesday 10 July 2013 21:31:51 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 ...

Re: linking problems with several static libraries

2013-07-10 Thread Orna Agmon Ben-Yehuda
On Thu, Jul 11, 2013 at 1:39 AM, Oron Peled wrote: > > On Wednesday 10 July 2013 21:31:51 Diego Iastrubni wrote: > > I have been figthing this nice problem at work, which I would like > someone > > to help me. Basically, I have several static libs (liba... libk) which I > > need to link to my pro

Re: linking problems with several static libraries

2013-07-10 Thread Oron Peled
On Wednesday 10 July 2013 21:31:51 Diego Iastrubni wrote: > I have been figthing this nice problem at work, which I would like someone > to help me. Basically, I have several static libs (liba... libk) which I > need to link to my program. > > My program needs liba, which in turn needs libb.. whi

Re: linking problems with several static libraries

2013-07-10 Thread guy keren
read this tutorial fully - and you should get your answer: http://users.actcom.co.il/~choo/lupg/tutorials/libraries/unix-c-libraries.html in particular, the answer is in section 8.1 --guy On 07/10/2013 09:31 PM, Diego Iastrubni wrote: Hi all, I have been figthing this nice problem at work

Re: linking problems with several static libraries

2013-07-10 Thread Omer Zak
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 tha

linking problems with several static libraries

2013-07-10 Thread Diego Iastrubni
Hi all, I have been figthing this nice problem at work, which I would like someone to help me. Basically, I have several static libs (liba... libk) which I need to link to my program. My program needs liba, which in turn needs libb.. which in turn needs libk. The last libk needs symbols from l