automake
[Top][All Lists]
Advanced

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

simple Q: linking against another static lib


From: joseph speigle
Subject: simple Q: linking against another static lib
Date: Wed, 2 Jun 2004 20:56:31 -0500
User-agent: Mutt/1.4.1i

hi,

hope this arrives well, if it's too easy such is life.  However, I found a good 
link for my problem which doesn't work.  I want to statically compile into my 
final executable a library (libpqxx.a -- the c++ postgresql client lib) but 
can't find the Makefile.am "directive" to do so.  

The book by Vaugn says:

`_LIBADD' 
Like `_LDADD', but used for static libraries and not programs.

However, it returns with 

src/Makefile.am:6: use `dict_cgi_LDADD', not `dict_cgi_LIBADD'
src/Makefile.am:6: unused variable: `dict_cgi_LIBADD'

Oh, BTW fedora core 2 automake

address@hidden Apache]# rpm -qa | grep automake
automake16-1.6.3-2
automake17-1.7.9-2
automake14-1.4p6-9
automake-1.8.3-1
automake15-1.5-10
address@hidden Apache]#


Oh, BTW the Makefile.am is:

bin_PROGRAMS = dict.cgi
dict_cgi_SOURCES = main.cpp user.cpp dictionary.cpp common.cpp
dict_cgi_LDADD = -lcgi -lsession
bindir= @CGIDIR@
INCLUDES = -I/usr/local/pqxx/include/
dict_cgi_LIBADD=/usr/local/pqxx/lib/libpqxx.a
install-data-am:
        cp -p data/english.box $(bindir);
        cp -p data/french.box $(bindir);
        cp -p data/german.box $(bindir);
        cp -p data/korean.box $(bindir);
        cp -p data/japanese.box $(bindir);
        cp -p data/spanish.box $(bindir);
~


thanks and muchas gracias desde texas

joe

-- 
joe speigle
www.sirfsup.com




reply via email to

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