www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/18/11:32:15

From: G DOT DegliEsposti AT ads DOT it
To: djgpp AT delorie DOT com
Message-ID: <C12565CB.005A4D5E.00@vega.ads.it>
Date: Wed, 18 Mar 1998 17:30:36 +0100
Subject: Re: __cplusplus
Mime-Version: 1.0




>good question!  i assumed that it was always defined by the compiler
>and not the type of file being compiled.  am i wrong?
yes and no: it is true that it is defined by the compiler, but it is
also true that gcc invokes the c or the c++ compiler according
to the file extension (gcc is not the real compiler, it is a "driver" who
calls compiler, assembler and/or linker as necessary).

>On Mon, 16 Mar 1998 11:42:16 -0500, Ian Chapman <ichapman AT nortel DOT ca>
>wrote:
>
>>Hi,
>>   __cplusplus is that defined by the system depending upon the source
>>file bing .c or .cc?  Or should I have an explicite:-
ciao
  Giacomo



- Raw text -


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