Chap 4: `<editline/history.h>` does not exist on macOS
estensen opened this issue · 2 comments
estensen commented
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 don't know if that's also the case for Linux.
More on Stackoverflow
estensen commented
The solution described further down in the paragraph.
SpineyPete commented
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! :)