editline/history.h and editline/readline.h not found/working on OSX when trying to compile with developer tools installed already

后端 未结 8 974
情深已故
情深已故 2021-02-02 07:37

I am working on this tutorial on building your own LISP (http://www.buildyourownlisp.com/chapter4_interactive_prompt) and for some reason when I try to compile I get this:

8条回答
  •  余生分开走
    2021-02-02 08:18

    I'm on Ubuntu 14.04.

    try this:

    sudo apt-get install libeditline-dev

    and include like this:

    #include

    finally compile like this:

    add -leditline in the flag

    I hope this can help.

提交回复
热议问题