>>>>> holotko writes:
> I have an old program here that was coded a few years ago and it
> utilizes a few of the basic dbm " barely a database" functions such as
> "dbm_open()" , "dbm_close()", "dbm_fetch()" and "dbm_store()". This
> system was recently upgraded to RedHat vers. 5.0/ w glibc".
> In the past when I needed to compile a program using these functions I
> would do this:
> $ gcc -o foo foo.c -ldbm
> However when I try to do this now I get a message saying "cannot open
> -ldbm - no such file or directory". At first I figured that I need to
> specify a path but, apparently this library is no longer available as I
> could not locate it on the system. Yet the header "/usr/include/ndbm.h"
> is.
Just link against libdb (-ldb), it contains also the old dbm
interface.
Btw. <ndbm.h> says:
/* Map dbm interface onto db(3). */
Andreas
--
Andreas Jaeger [EMAIL PROTECTED] [EMAIL PROTECTED]
for pgp-key finger [EMAIL PROTECTED]