关于curses
发表于 : 2008-12-03 12:18
小弟刚开始学关于curses和ncurses编程,写了这样一个极其简单的程序:
然后这样编译:
gcc -o -lncurses hello hello.c
问题出现了,提示:
gcc :hello:No such file or directory
hello.c :1:21:error:ncurses.h:No such file or directory
但是我的/lib/libncurses.so是存在的,请问各位大侠,这是怎么回事啊,怎么解决啊?
谢谢拉
代码: 全选
//hello.c
#include <ncurses.h>
int main()
{
initscr();
printw("Hello!");
refresh();
getch();
endwin();
return 0;
}
gcc -o -lncurses hello hello.c
问题出现了,提示:
gcc :hello:No such file or directory
hello.c :1:21:error:ncurses.h:No such file or directory
但是我的/lib/libncurses.so是存在的,请问各位大侠,这是怎么回事啊,怎么解决啊?
谢谢拉