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
This question is related to
c
linux
libreadline
This command helped me on linux mint when i had exact same problem
gcc filename.c -L/usr/include -lreadline -o filename
You could use alias if you compile it many times Forexample:
alias compilefilename='gcc filename.c -L/usr/include -lreadline -o filename'
Source: Stackoverflow.com