我成功跑了 sudo apt-get install libncurses5-dev
在我的 Eclipse 窗口中,我尝试构建以下HelloWord.cpp程序:
#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;
}
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Invoking: GCC C++ Linker
g++ -m32 -lncurses -L/opt/lib -o "Test_V" ./src/curseTest.o ./src/trajectory.o ./src/xJus-epos.o -lEposCmd
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit …Run Code Online (Sandbox Code Playgroud)