I have included:
#include "stdio.h"
#include <readline/readline.h>
#include <readline/history.h>
and my compiler includes the flag
-lreadline
but I am still receiving the error message:
fatal error: 'readline/readline.h' file not found
I am trying to use the function, readline();
Defined in more detail here: http://linux.die.net/man/3/readline
/usr/include
). Doesreadline/readline.h
exist in that path? (eg,/usr/include/readline/readline.h
). If not, add the correct path via-I
. (eg, if you have installed readline in /usr/local, add-I/usr/local/include
to the compiler invocation.)