[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: create executable file
From: |
susan xie |
Subject: |
RE: create executable file |
Date: |
Tue, 13 Nov 2007 09:40:43 -0500 |
> Date: Tue, 13 Nov 2007 09:20:08 +0100
> From: address@hidden
> To: address@hidden
> CC: address@hidden
> Subject: Re: create executable file
>
> 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
Ralf,
Thanks a lot.
My makefile.am is as follows. All these libraries will be created during the
'make'.
-------------------------------------------------------------------------------------------------------------------------
bin_PROGRAMS = main
main_SOURCES = AOMD/main.cc
main_CXXFLAGS = -Wall -D_MY_HASH_TABLE_ -D_HAVE_MODEL_ -DFLEXDB -DLINUX
-DFORT_LC_US -D_SCOREC_NewCompiler -DUNIX \
-I$(top_srcdir)/FMDB/FMDB/include \
-I$(top_srcdir)/SCORECUtil/SCORECUtil/include \
-I$(top_srcdir)/SCORECModel/SCORECModel/include
if DEBUG
main_CXXFLAGS += -g -DDEBUG
else
main_CXXFLAGS += -O4
endif
main_LDADD = $(top_builddir)/FMDB/FMDB/libFMDB.la \
$(top_builddir)/SCORECUtil/SCORECUtil/libSCORECUtil.la \
$(top_builddir)/SCORECModel/SCORECModel/libSCORECModel.la
main_DEPENDENCIES = $(top_builddir)/FMDB/FMDB/libFMDB.la \
$(top_builddir)/SCORECUtil/SCORECUtil/libSCORECUtil.la \
$(top_builddir)/SCORECModel/SCORECModel/libSCORECModel.la
--------------------------------------------------------------------------------------------------------------------------
Please let me know if I made any mistakes. Thanks.
Ting
_________________________________________________________________
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us