automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking lib against static libs using libtool


From: Alexander I Olefirenko
Subject: Linking lib against static libs using libtool
Date: Thu, 5 Oct 2000 16:58:16 +0400

I'm sorry i've posted same message into this mailing list but don;t get any
reply.. Hope you'll help me this time :)
The problem is that i can't link library against static libs:
here's the code i'm using to link (generated by automake) :
/bin/sh ../libtool --mode=link c++  -g -O2  -o libocicpp.la -rpath
/usr/local/lib /usr/local/oracle/app/oracle/product/8.0.5/lib -lclntsh
-lcommon -lcore4 -lnlsrtl3 -version-info 4:0:4 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 
rm -fr .libs/libocicpp.la .libs/libocicpp.* .libs/libocicpp.*
Here's warning i've got:

*** Warning: This library needs some functionality provided by -lcommon.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
 
*** Warning: This library needs some functionality provided by -lcore4.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
 
*** Warning: This library needs some functionality provided by -lnlsrtl3.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
gcc -shared  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  -L/usr/local/oracle/app/oracle/product/8.0.5/lib
-lclntsh -lc  -Wl,-soname -Wl,libocicpp.so.0 -o .libs/libocicpp.so.0.4.0
As you can see common core4 and nlsrt3 are gone ...
how can i force libtool to add it to gcc's command line.
And sorry for my ugly english :)

-- 
Regards, Olefirenko Alexander
RBC Co. http://www.rbc.ru
Programmer.
(095)935-20-01(207,209)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]