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

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

    Include only

    #include 
    

    which should exist if the command line tools are installed. This file contains the "readline wrapper" for libedit, including the history functions as well. An include file does not exist on OS X.

    I tested your code with that modification, and it compiled and ran without problems.

提交回复
热议问题