Date: Thu, 09 May 2002 15:36:39 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Mikhail Teterin <mi+mx@aldan.algebra.com> Cc: questions@FreeBSD.org, current@FreeBSD.org Subject: Re: does the order of .a files matter? Message-ID: <3CDAF9F7.B70C8315@mindspring.com> References: <200205082044.09459.mi%2Bmx@aldan.algebra.com> <3CD9D669.9175E309@mindspring.com> <200205091752.06823.mi%2Bmx@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Mikhail Teterin wrote: > = > The most frustrating thing is, the number of such symbols varies > = > greatly with the order, in which I list the libraries on the command > = > line. Is not the linker supposed to make several runs over the given > = > libraries if needed? > = > = No. It doesn't make several runs. It only does that for single > = object files. > > Is there a reason for it, or this just a not-yet-implemented feature? It > certainly seems like the latter -- why make the user jump through all > the sorting/reordering hoops? Generally, this won't be necessary for properly organized code. The code in question is organized by software layering, right, so all you have to do is link the libraries in order? > = You might also want to consider using -L<path> -l<library>, instead > = of trying to link .a's directly. > > What would this do? Make it all go through the library linking code, instead of the single object archive linking code. a ".a" file treated as an object is not the same as a library. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CDAF9F7.B70C8315>