To be able to compile the code under the header "Using Editline" one has to remove #include<editline/history.h> and compile with cc -std=c99 -Wall prompt.c -ledit -o prompt
I had this issue and indeed simply removing the #include <editline/history.h> line does the trick. There's no note of this in the text though, plz fix! :)
To be able to compile the code under the header "Using Editline" one has to remove
#include<editline/history.h>
and compile withcc -std=c99 -Wall prompt.c -ledit -o prompt
I don't know if that's also the case for Linux.
More on Stackoverflow