Mail Archives: djgpp/1996/10/20/17:55:41
> On Sat, 19 Oct 1996, Axel Schwenke wrote:
>
> > 3. I looked into libcurso.a with nm and it said me that the
> > unsolved symbols are still in (yes as T(ext)) but the linker
> > says they aren`t! Why?
> >
> > 4. The path for the library is o.k. pdcurses is in DJGPP2/CONTRIB/
> > PDCURS22/... and the LIB subdir of this path is included in
> > the DJGPP LIBRARY_PATH. Also the linker seems to find libcurso.a
The header curses.h in pdcurses don't handle C++ properly. As a
workaround, try to include the file like this:
extern "C" {
#include <curses.h>
}
Or edit the file and add at the beginning
#ifdef __cplusplus
extern "C" {
#endif
and at the end
#ifdef __cplusplus
}
#endif
Personally, I did the second.
- Raw text -