Altera_Forum
Honored Contributor
15 years agocan not use curses LIBS by -lcurses
vt100.c:
#include <curses.h> int main() { initscr(); //box(stdscr,ACS_VLINE,ACS_HLINE); move(LINES/2,COLS/2); waddstr(stdscr,"Hello,world!"); refresh(); getch(); endwin(); return 0; } I build an example that use the curses for VT100. I can build it in LINUX : gcc -o vt100 vt100.c -lcurses but when I used the nios2-gcc : nios2-linux-uclibc-gcc -o vt100 vt100.c -lcurses some errors: vt100.c:1:20: curses.h: No such file or directory well How can I link the correct LIBS?