Ok, I took more time to look at the problem. Turns out what I needed to do was replace -lcurses by -lncurses -lgpm libcurses.a is absent from the system, and linking with libncurses.a requires libgpm.a too here.. TTimo