$ tar xvfz gdbm-1.8.0.tar.gz
$ cd gdbm-1.8.0
$ ./configure
$ make
$ make progs
(snip)
creating testndbm
cp ./testndbm.c ./tndbm.c
gcc -c -I. -I. -O ./tndbm.c
rm -f ./tndbm.c
gcc -o tndbm tndbm.o -lc
tndbm.o: In function `main':
tndbm.o(.text+0x108): the `gets' function is dangerous and should not be used.
tndbm.o(.text+0x55): undefined reference to `dbm_open'
tndbm.o(.text+0x146): undefined reference to `dbm_fetch'
tndbm.o(.text+0x215): undefined reference to `dbm_store'
tndbm.o(.text+0x292): undefined reference to `dbm_delete'
tndbm.o(.text+0x2d2): undefined reference to `dbm_firstkey'
tndbm.o(.text+0x312): undefined reference to `dbm_fetch'
tndbm.o(.text+0x366): undefined reference to `dbm_nextkey'
tndbm.o(.text+0x3a6): undefined reference to `dbm_fetch'
tndbm.o(.text+0x404): undefined reference to `dbm_firstkey'
tndbm.o(.text+0x42d): undefined reference to `dbm_nextkey'
tndbm.o(.text+0x4d5): undefined reference to `dbm_close'
collect2: ld returned 1 exit status
make: *** [tndbm] エラー 1
|