orangeduck / BuildYourOwnLisp

Learn C and build your own programming language in under 1000 lines of code!
http://www.buildyourownlisp.com/
Other
2.93k stars 396 forks source link

Chap 4: `<editline/history.h>` does not exist on macOS #124

Closed estensen closed 7 years ago

estensen commented 7 years ago

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 7 years ago

The solution described further down in the paragraph.

SpineyPete commented 5 years ago

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! :)