usr / bin / ld:找不到-lncurses

时间:2015-08-23 15:34:03

标签: c++ gcc ubuntu-15.04

我正在尝试与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上运行?

1 个答案:

答案 0 :(得分:4)

您应该安装libncurses

sudo apt-get install libncurses5-dev