Originally Posted by CroMagnon
What errors do you get? Do you have the gdbm dev library package installed?
I was minus the libgdbm-dev stuff; once installed, make worked to a point. I will paste the errs in and hope they cp as I see them:
main.c:5:22: error: readline.h: No such file or directory
main.c:6:21: error: history.h: No such file or directory
main.c: In function \xe2\x80\x98getWord\xe2\x80\x99:
main.c:15: warning: implicit declaration of function \xe2\x80\x98readline\xe2\x80\x99
main.c:15: warning: return makes pointer from integer without a cast
main.c:17: warning: return makes pointer from integer without a cast
main.c:19: warning: return makes pointer from integer without a cast
main.c: In function \xe2\x80\x98main\xe2\x80\x99:
main.c:36: warning: implicit declaration of function \xe2\x80\x98using_history\xe2\x80\x99
main.c:37: warning: implicit declaration of function \xe2\x80\x98rl_bind_key\xe2\x80\x99
main.c:37: error: \xe2\x80\x98rl_insert\xe2\x80\x99 undeclared (first use in this function)
main.c:37: error: (Each undeclared identifier is reported only once
main.c:37: error: for each function it appears in.)
main.c:54: warning: implicit declaration of function \xe2\x80\x98add_history\xe2\x80\x99
main.c:63: warning: implicit declaration of function \xe2\x80\x98clear_history\xe2\x80\x99
make: *** [rhyme] Error 1
Yep. Okay the hex triplets are the html "``" and "''"; I'm almost positive. This is fairly easy to resolve with tr or perl, &c.
Another thing is that the headers are just not seen. Note the first two lines. I also tried a dummy x.c with
gcc complained about not finding stdio.h in my first try. The second time, x.c compiled to a.out perfectly and printed a newline. Is is cpp that finds the header files? Or the linker?