[NTLUG:Discuss] compiling with *.a libs
Cameron
hrothgar at endor.hsutx.edu
Mon Dec 6 20:41:49 CST 1999
* matt at snsnet.net [1999.12.06 13:18]:
: Cameron wrote:
: >
: > hello all,
: > i've downloaded BerkeleyDB (http://www.sleepycat.com) and compiled and
: > installed it. when i try to compile a program, i get linker errors,
: > which i assume mean that ld doesn't like the libdb.a library archive (as
: > opposed to the .so libs). could someone fill me in on what i'm doing
: > wrong or what i need to do to remedy this?
:
: It should link that libdb.a in without a problem. Try adding -L/path/to/libdb to
: make sure it knows what directory that library file is in. Make sure you don't
: have an older version of libdb somewhere in your link path. You could always do
: a strings libdb.a | grep db_create to make sure those functions are in the
: libdb.a you have.
:
: Matt
: matt at snsnet.net
:
Matt,
Thanks for your tips; didn't know about the `strings` program. But
alas, I went back and checked the configure --help output and there's an
option to compile BerkeleyDB as a shared lib, so problem solved (for
now). Thanks again, Matt.
--
cameron
[ Grow up and use mutt (http://www.mutt.org) ]
More information about the Discuss
mailing list