making pdcurses work with C++ Builder

421 views Asked by At

Anybody knows how to integrate Pdcurses with Embarcadero C++ Builder ?

I've added the library, pdcurses.lib to my project and I've added the pdcurses.dll in the deployment section. but whatever I might do, I still got a link32 error.

2

There are 2 answers

0
AudioBubble On BEST ANSWER

Here's a small how to, for those who need it in a hurry:

Go to http://sourceforge.net/projects/pdcurses/files/pdcurses/3.4/ and download the pdc34dllw.zip and the pdcurs34.zip that contains the source files. Extract the files from pdc34dllw.zip, and keep only these ones: curses.h, pdcurses.dll and optionally panel.h

After that, extract the other archive, pdcurs34.zip and go to win32 folder. There in your windows console do:

make -f bccwin32.mak

From all those files generated after the build, search for pdcurses.lib, as you will only need that. Copy the files curses.h, pdcurses.dll from the first archive, and the newly generated pdcurses.lib in your C++ Builder project folder. Add the pdcurses.lib to your project, include the "curses.h" header file, hit F9 and it should work fine.

20
manuell On

Googled it for you.

The lib file is not compatible with Borland's OMF file format.

Use the Borland's IMPLIB tool, passing the DLL as argument. It will generate a Borland compatible import library. Link with that library.

Edit: Another option is to use Borland's COFF2OMF tool on the Microsoft import library.