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

后端 未结 8 970
情深已故
情深已故 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:01

    On Debian Buster 10, I had to install the package with:

    sudo apt install libeditline-dev 
    

    Instead of:

    #include 
    #include 
    

    I just included:

    #include 
    

    ran the program with -leditline flag and worked perfectly.

提交回复
热议问题