VOGONS


First post, by redblade7

User metadata
Rank Newbie
Rank
Newbie

Hi,

Decided to be brave and try compiling some games ncurses games (which compile fine on Linux and Cygwin) using DJGPP's PDCurses. DJGPP works fine for non-curses programs, but I keep getting "cannot find -lpdcurses" errors. Anyone familiar with this issue?

Thanks,

-redblade7

Rogue Central @ coredumpcentral.org

Reply 1 of 2, by frobme

User metadata
Rank Member
Rank
Member

djgpp is saying it can't find the library you have presumably already compiled for pdcurses. Add the lib directory to your lib path, use a fully qualified location on the link line, or copy the lib and it's header into the link location of your main program.

-Frob

Reply 2 of 2, by redblade7

User metadata
Rank Newbie
Rank
Newbie

Hi,

I was able to compile some of those ncurses programs, modifications were needed for pdcurses, 8x3 filenames, etc.

I had to add

"C:\DJGPP\LIB"

to the PATH like you said, but had to link to:

"-lpdc~1"

instead of -lpdcurses

I was able to compile (list includes non-curses games):

1. atrogue (obscure new roguelike)
2. ESR's Battleship
3. Crazy Eights (unknown author, downloaded from Freshmeat I think)
4. hodie (Latin date/time)
5. Nibbles (by Luke Th. Bullock and Nils Magnus Englund)
6. ESR's Wumpus
7. ESR's Superhack

I'm new to this forum - given the name of the forum, I was wondering if posting FOSS sources and binaries or freeware/unregistered shareware programs was allowed here.

-redblade7

Rogue Central @ coredumpcentral.org