How do I install PDCurses in Windows for use with C++?

user1212347 picture user1212347 · Feb 15, 2012 · Viewed 12.9k times · Source

I want to use it in some of my programs instead of the standard IOStream.

Also, does NCurses work on Windows, and if so, any better?

Answer

Rob Kennedy picture Rob Kennedy · Feb 15, 2012

Download the zip file, unpack it wherever you typically put external libraries, and check the readme, which tells you the following:

PDCurses has been ported to DOS, OS/2, Win32, X11 and SDL. A directory containing the port-specific source files exists for each of these platforms. Build instructions are in the README file for each platform.

The readme file in the Win32 directory tells you that there are makefiles for several different compilers. In short, you run make:

make -f makefilename

It tells mentions a couple of options you can set, including WIDE and UTF8.

To then use the library, add the directory that contains curses.h to your include path and link with the pdcurses.lib file that make generates for you. How you modify your include path and your linked libraries depends on your development environment and is largely irrelevant to PDCurses.