[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cannot link shared libraries into libtool libraries
From: |
Gary V . Vaughan |
Subject: |
Re: cannot link shared libraries into libtool libraries |
Date: |
Wed, 11 Jul 2001 19:24:34 +0100 |
What version of libtool?
The problem might be that `session/libsession.la' etc. is a relative path.
Try using something like $(top_builddir)/this_directory/session/libsession.la'
in Makefile.am and things will probably work a little better...
Cheers,
Gary.
On Wednesday 11 July 2001 4:34 pm, Olefirenko Alexander wrote:
> Hello !
> i need to compile and link library which depends on other libraries (some
> are inside a project) but while linking i got
>
> /bin/sh ../libtool --silent --mode=link c++ -g -O2 -o libmod_cpp.la
> -rpath /usr/local/lib -version-info 0:1:0 mod_cpp.lo kernel.lo servant.lo
> cgi/libcgi.la session/libsession.la template/libtemplate.la
> -L/usr/local/oracle/app/oracle/product/8.1.6/lib -lclntsh -L/usr/local/lib
> -locicpp libtool: link: error: cannot link shared libraries into libtool
> libraries
>
> cgi template and so on are libs inside a project.
>
> At the same time it ok when linking without .la files e.g. :
> /bin/sh ../libtool --mode=link c++ -O2 -o libocicpp.la -rpath
> /usr/local/lib -version-info 5:0:5 Connection.lo Cursor.lo Lob.lo
> OraDate.lo OraDummy.lo OraError.lo OraLabel.lo OraLob.lo OraNumber.lo
> OraRaw.lo OraRefCur.lo OraRowID.lo OraString.lo OraType.lo RowID.lo db.lo
> ocicpp.lo OraBFile.lo BFile.lo TLob.lo AQMessage.lo AQQueue.lo
> -L/usr/local/oracle/app/oracle/product/8.1.6/lib -lclntsh works fine ! ...
>
> Could you please help me ?
--
())_. Gary V. Vaughan gary@(oranda.demon.co.uk|gnu.org
( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____
/ )= GNU Hacker http://www.gnu.org/software/libtool \' `&
`(_~)_ Tech' Author http://sources.redhat.com/autobook =`---d__/