我正在尝试与ncurses库链接。但这不起作用。这些是错误消息:
/usr/bin/ld: cannot find -lcurses
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
Makefile:102: recipe for target 'ch_lab' failed
make[1]: *** [ch_lab] Error 1
我的问题是,我应该安装哪个软件包才能在Ubuntu上运行?
答案 0 :(得分:4)
您应该安装libncurses
sudo apt-get install libncurses5-dev