From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078612210639.tru64-unix-managers.marc@archive.invalid> From: Ellen Davis Date: Tue, 27 May 1997 13:40:28 +0000 To: tru64-unix-managers Subject: linking question X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078612210639 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