My OpenSUSE 12.3 block has no links to libcurses with ncurses installed. Any C program that tries to use the -lcurses flag will work until you replace the flag with -lncurses.
OpenSUSE 12.3 > ls -al /usr/lib64
Links are also missing on Fedora 17. However, there are links on Ubuntu 13.04:
Ubuntu 13.04 > ls -al /usr/lib/x86_64-linux-gnu
Thus, compilation with -lcurses will fail on OpenSUSE and Fedora, but will work with Ubuntu. Compiling with -lncurses will work for all three distributions.
Bottom line: if you want your code to compile on different Linux distributions, you should use -lncurses.
Earl ruby
source share