From 2f499e46a71965be4d889433e4aae257e9c7cb92 Mon Sep 17 00:00:00 2001 From: Steven Tsao Date: Mon, 24 Dec 2018 13:19:43 -0800 Subject: [PATCH] Add comment to exclude history.h ##Error## `REPL.c:4:10: fatal error: 'editline/readline.h' file not found` ##Solution## There is a common error on including ``. The solution is to remove it given many users on MacOS X that doesn't have the lib. ##Reference## https://stackoverflow.com/questions/22886475/editline-history-h-and-editline-readline-h-not-found-working-on-osx-when-trying --- chapter4_interactive_prompt.html | 1 + 1 file changed, 1 insertion(+) diff --git a/chapter4_interactive_prompt.html b/chapter4_interactive_prompt.html index eb550c7..f858a4a 100644 --- a/chapter4_interactive_prompt.html +++ b/chapter4_interactive_prompt.html @@ -121,6 +121,7 @@

Using Editline

#include <stdlib.h> #include <editline/readline.h> +// Do not include history.h for MacOS X or later #include <editline/history.h> int main(int argc, char** argv) {