时光荏苒..
全部博文(453)
分类: LINUX
2011-12-28 16:42:17
Let’s take a simple readline program
#include
#include
#include
int main() {
char *s;
s= readline(NULL);
printf(“characters read: %s\n”, s);
}
On compiling this program
$ gcc readInput.c
readline.c:2: fatal error: readline/readline.h: No such file or directory
compilation terminated.
If you come across this error, you must install readline dev package
$ sudo apt-get install libreadline6 libreadline6-dev