Linking with Static Libraries (linux)

H

Herr Fieldmarshall

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...
 
L

Lionel B

Herr Fieldmarshall said:
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...

And this has what exactly to do with the C++ language?

Try asking in a ng for your compiler.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top