If you use PDCurses, then you can download all needed files from the PDCurses homepage - PDCurses - Public Domain Curses
The binary distribution (pdc34dllw.zip) has the headers, lib file (in COFF format) and dll. Or get the source and compile it from scratch.
If you use the binary, you must convert the included lib file from COFF to OMF format using the Borland C++'s coff2omf tool:
Code:
ren pdcurses.lib pdold.lib
coff2omf pdold.lib pdcurses.lib
Place the .lib and .h files in appropriate places where they can be found by your compiler. Place the .dll file in your PATH or in the same directory as the executable.
Then compile as normal
Code:
bcc32 timeoutexample.c pdcurses.lib
I tried this and confirmed it works with Borland's freeware compiler. However, it is outdated. Why are you using it? If you really want to use it, you'll have to adjust the code to ANSI89 standards (e.g. all declarations must be at the top of each block, define your own bool type or just use int and change true to 1 and false to 0, etc)