* linking question
@ 1997-05-27 13:40 Ellen Davis
0 siblings, 0 replies; only message in thread
From: Ellen Davis @ 1997-05-27 13:40 UTC (permalink / raw)
To: tru64-unix-managers
I have made the Berkeley DB library (libdb.a) and installed it in
/usr/local/lib. However, when I try to link it in my program I get
unresolved link errors:
# cc -g -o z z.c -L/usr/local/lib -ldb -I/usr/local/include
ld:
Unresolved:
db_appinit
db_open
#
I have found that there already exists an older version of the db library
in /usr/lib. If I rename /usr/local/lib/libdb.a to libdb2.a and use it,
the above command works fine.
#cc -g -o z z.c -L/usr/local/lib -ldb2 -I/usr/local/include
#
I thought the -L option was supposed to override the search order for
libraries. Is there something wrong with the way I am using this option?
Ellen Davis
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-05-27 13:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-05-27 13:40 linking question Ellen Davis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox