[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking convenience libraries

From: Bob Friesenhahn
Subject: Re: Linking convenience libraries
Date: Thu, 3 Mar 2005 12:01:26 -0600 (CST)

On Thu, 3 Mar 2005, Albert Chin wrote:

When using the compiler to perform the link and linking against
convenience libraries, is there any reason to link explicitly against
the extracted objects of the convenience libraries rather than just
the .a file? I'm running into a problem on IRIX with the SGI C++
compiler that is solved if I link the .a files. I see no reason why we
extract the convenience libraries libraries when linking against the
compiler v. the linker.

If we link against the .a file directly then the only objects which will get pulled in are the ones required to link (resolve symbols). This means that much of the library may be missing.

If we are building an application it is desirable to shed unnecessary objects but it is not desirable to do that for libraries.

Bob Friesenhahn
GraphicsMagick Maintainer,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]