This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
libtool flags and "extern"
- From: JRBCAST <JRBCAST at teleline dot es>
- To: automake at gnu dot org
- Date: Tue, 18 Nov 2003 14:25:29 +0100
- Subject: libtool flags and "extern"
Hi,
I am porting an existing library to make it gnu compliant by using
autotools. For building libraries I am using libtool but I am facing a
problem when trying to link some programs against those libraries with
undefined references. I have located the problem during compiling stage
(When generating objects for the libraries). Before it was done :
g++ -o foo.o -I/usr/include -fPIC foo.cc -c
And now with autotools it does:
g++ -I/includes -g -O2 -c foo.cc -MT foo.lo -MD -MP -MF .deps/foo.TPlo
-o foo.o
The problem is that I can not find what do those flags mean and why are
they causing problems.
Libraries are built OK and problems are only with files newly added
which use "extern" functions... Do you know about issues with externs?
Thanks very much