gcc /usr/bin/ld: error: cannot find -lncurses

后端 未结 3 626
半阙折子戏
半阙折子戏 2020-12-24 12:03

I am running Ubuntu 12.04 and I\'m currently working on a project involving C, OpenGL, a teapot and input methods.

The problem started when I decided to have arrow k

3条回答
  •  天命终不由人
    2020-12-24 12:48

    For anyone with the same problem I had: I was missing the 32 bit libraries; I was compiling 32 bit on a 64 bit server which was missing the lib32ncurses5-dev package.

    On Ubuntu I simply ran:

    sudo apt-get install lib32ncurses5-dev
    

提交回复
热议问题