Re: compile error
Brought to you by:
set
From: Salvador E. T. <sal...@in...> - 2005-07-19 19:19:13
|
Oswald Buddenhagen wrote: >On Tue, Jul 19, 2005 at 03:41:57PM -0300, Salvador Eduardo Tropea wrote: > > >>>ah, that's because libeasyd.a _must_ (yes, really, it's a standard) >>> >>> >>> >>A standard? >> >> >> >[gnu ld man page, option -l<lib>] > > That isn't part of any standard. > The linker will search an archive only once, at the location > where it is specified on the command line. If the archive > defines a symbol which was undefined in some object which > appeared before the archive on the command line, the linker will > include the appropriate file(s) from the archive. However, an > undefined symbol in an object appearing later on the command > line will not cause the linker to search the archive again. > > See the -( option for a way to force the linker to search > archives multiple times. > > You may list the same archive multiple times on the command > line. > > In my experience it was true before ld started to use collect2. The library order that you pointed out was there for more than four years. >>>>This type of archive searching is standard for Unix linkers. >>>> >>>> > However, if you are using ld on AIX, note that it is different > from the behaviour of the AIX linker. > >well, it's not _a_ standard, but it is standard. :) > > > >>>come after libsettv.a (which depends on the former) - even if some >>>linkers grok it nonetheless. >>> >>> >>> >>Just some linkers? all binutils I tried do. >> >> >> >well, in version 2.16.1 they don't anymore, by default. > > No problem, I already solved it. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |