Mail Archives: djgpp/1996/10/20/16:54:02
Axel Schwenke wrote:
>
> The Problem with PDcurses is solved. Many thanx to Eli Zaretskii who
> guessed there is a C/C++ ambiguity.
>
> Obviously there is something wrong with <curses.h>, they test
> for _cplusplus to recognize C++ mode, but that symbol is not
> defined when using gcc to compile C++ code.
>
> Therefore, does anybody know what (automatic) symbol does indicate
> you`re compiling in C++ mode? I could not find any Information in
> the dokumentation (maybe I overlooked it).
>
The symbol is __cplusplus (TWO underscores). That's the cause of the problem.
Bill
- Raw text -