OK- even the downloaded SW for Chap 7 dbm1 is getting the same errors I got with mine. Well, exactly the same errors. In the reading it says to get the GNU Compatibility Libraries in order to fix this problem even though I already have The supposed required Libs. gdbm.h and ndbm.h that were loaded with my Suse linux 11. So, I am thinking there must be a different solution than the 2 that are given in the reading after the particular code. Does anyone know what that might be?
I have used the solutions and tried several variations in order to circumvent and possibly solve the problem. Several of them return the same errors. Which with the libraries installed and in the path should not happen I don't think...The particular functions are in the header files and available so I am in a quandary.
/tmp/ccUXrIce.o: In function `main':
dbm1a.c:(.text+0x2d): undefined reference to `dbm_open'
dbm1a.c:(.text+0x246): undefined reference to `dbm_store'
dbm1a.c:(.text+0x2f0): undefined reference to `dbm_fetch'
dbm1a.c:(.text+0x37b): undefined reference to `dbm_close'
collect2: ld returned 1 exit status