[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linking with static libraries
From: |
Guy Harrison |
Subject: |
Re: Linking with static libraries |
Date: |
Tue, 01 Feb 2005 08:00:53 GMT |
User-agent: |
KNode/0.8.1 |
Herr Fieldmarshall wrote:
> Hello,
>
> I've 2 static libraries (let's say libx.a and liby.a) and an executable
> (let's call it exe). exe only makes calls to liby.a but liby.a makes calls
> implemented in libx.a
>
> In my Makefile.am files for liby.a I added liby_a_LIBADD =
> $(path_to_libx.a) and in the Makefile.am I added a exe_LDADD =
> $(path_to_libx_a) $(path_to_liby_a)
>
> Nevertheless I still get Link-errors for the functions called in libx from
> liby...
autotool stuff is offtopic here but wind your browser back a few days
(postings by Paul) and you'll see all that needs to be known.
Loosely (to fix your first issue), static libs must be linked in symbol
resolution order.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Linking with static libraries,
Guy Harrison <=