+ -
当前位置:首页 → 问答吧 → 有关curses.h头文件

有关curses.h头文件

时间:2010-11-08

来源:互联网

#include<unistd.h>;
#include<stdlib.h>;
#include<curses.h>;
int main()
{
initscr();
move(5,15);
printw("%s","hello ilcj");
refresh();
sleep(2);
endwin();
exit(EXIT_SUCCESS);
}

我用gcc -o hello hello.c 编译咋子会说undefined reference to initscr() 我把头文件换成<ncurses.h>编译命令 gcc -o hello hello.c - Incurses 怎么还是一样的错误呢

作者: jinpengzhao1988   发布时间: 2010-11-08

-lcurses

作者: deep_pro   发布时间: 2010-11-08

热门下载

更多