Re: relative ordering of static libraries

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CBFalconer

    Re: relative ordering of static libraries

    kooladi wrote:
    >
    While linking libraries with the final binary, does the relative
    ordering of libraries matter? specially for static libraries...
    >
    Lets say a.out is being complied with a1.o a2.o a3.o and linked with
    lib1.a and lib2.a
    Yes. The first module that satisfies a function load request will
    normally resolve that function forever. This sequence is normally
    needed to make libraries flexible, but is not part of the standard.

    --
    [mail]: Chuck F (cbfalconer at maineline dot net)
    [page]: <http://cbfalconer.home .att.net>
    Try the download section.


    ** Posted from http://www.teranews.com **
  • Flash Gordon

    #2
    Re: relative ordering of static libraries

    CBFalconer wrote, On 22/04/08 01:44:
    kooladi wrote:
    >While linking libraries with the final binary, does the relative
    >ordering of libraries matter? specially for static libraries...
    >>
    >Lets say a.out is being complied with a1.o a2.o a3.o and linked with
    >lib1.a and lib2.a
    >
    Yes. The first module that satisfies a function load request will
    normally resolve that function forever. This sequence is normally
    needed to make libraries flexible, but is not part of the standard.
    Also it is not done by all implementations , so "yes" is not the correct
    answer. You should have said "maybe" or "sometimes" or similar.
    --
    Flash Gordon

    Comment

    Working...