tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Ellen Davis <daviser () email ! uc ! edu>
To: tru64-unix-managers
Subject: linking question
Date: Tue, 27 May 1997 13:40:28 +0000	[thread overview]
Message-ID: <96078612210639.tru64-unix-managers.marc@archive.invalid> (raw)


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

                 reply	other threads:[~1997-05-27 13:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox