[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: create executable file
From: |
Ralf Wildenhues |
Subject: |
Re: create executable file |
Date: |
Tue, 13 Nov 2007 09:20:08 +0100 |
User-agent: |
Mutt/1.5.17 (2007-11-08) |
Hello Ting,
* susan xie wrote on Tue, Nov 13, 2007 at 08:57:53AM CET:
>
> I want to create an executable file with the libraries created by
> libtool during 'make' process, but I met the following errors:
>
> -------------------------------------------------------------------------
> make[1]: Entering directory `/test'
> /bin/sh ../../../libtool --mode=link --tag=CXX g++ -g -O2 -o main -Wl
> -rpath main.o ../../../foo1/foo1/libfoo1.la ../../../foo2/foo2/libfoo2.la
> ../../../foo3/foo3/libfoo3.la
>
> libtool: link: only absolute run-paths are allowed
> make[1]: *** [main] Error 1
What's the content of your test/Makefile.am file? It should be
something similar to
bin_PROGRAMS = main
main_SOURCES = main.cpp
main_LDADD = ../../../foo1/foo1/libfoo1.la \
../../../foo2/foo2/libfoo2.la \
../../../foo3/foo3/libfoo3.la
Cheers,
Ralf