Building HelloWorld C++ Program in Linux with ncurses
问题 I successfully ran sudo apt-get install libncurses5-dev Within my Eclipse window I then try to build the following HelloWord.cpp program: #include <ncurses.h> int main() { initscr(); /* Start curses mode */ printw("Hello World !!!"); /* Print Hello World */ refresh(); /* Print it on to the real screen */ getch(); /* Wait for user input */ endwin(); /* End curses mode */ return 0; } I get the following error: Invoking: GCC C++ Linker g++ -m32 -lncurses -L/opt/lib -o "Test_V" ./src/curseTest.o