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