0

I am attempting to link with the ncurses library. This doesn't work, though. These are the error messages:

/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

My question is, which package should I install to get this working on Ubuntu?

cadaniluk
  • 15,027
  • 2
  • 39
  • 67

1 Answers1

5

You should install libncurses

sudo apt-get install libncurses5-dev
Valery Viktorovsky
  • 6,487
  • 3
  • 39
  • 47