[NTLUG:Discuss] compiling with *.a libs
Matt Midboe
matt at snsnet.net
Mon Dec 6 13:15:45 CST 1999
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
More information about the Discuss
mailing list