delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/20/16:54:02

Date: Mon, 21 Oct 1996 09:23:07 +0000
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: Re: problem solved
To: Axel Schwenke <schwenke AT htwm DOT de>
Cc: djgpp AT delorie DOT com
Message-id: <326B40FB.3AE3@blackmagic.tait.co.nz>
Organization: Tait Electronics NZ
MIME-version: 1.0
References: <53foi3$f2 AT strippe DOT htwm DOT de> <54a6gc$4ca AT strippe DOT htwm DOT de>
<54dh35$4ib AT strippe DOT htwm DOT de>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019