help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: predifined macros ?


From: Llewelly
Subject: Re: predifined macros ?
Date: 19 Apr 2005 15:50:47 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Paul Pluzhnikov <ppluzhnikov-nsp@charter.net> writes:

> Dirk Hoffmann <hoffmann@cppm.in2p3.fr> writes:
> 
> > The following does what you want: 
> >     cpp -dM /dev/null
> 
> Not at all:
> 
> $ cpp -dM /dev/null | grep GNU
>                                      ### No output!
> 
> $ g++ -dM -E - < /dev/null | grep GNU
> #define __GNUC_PATCHLEVEL__ 3
> #define __GNUC__ 3
> #define __GNUC_MINOR__ 3
> 
> On a Linux system (and most other systems I know), cpp and gcc/c++
> come from completely different packages and have nothing to do with
> each other.

I am curious - what is the output of:

$ cpp --version

and

$ g++ --version

on the linux system you believe to have a cpp and a gcc which are
unrelated.

I ask because I have tried two versions of redhat, one version of
    slackware, and on all three boxen the output of the above two
    commands is identical except for the first 3 characters. (This is
    also true on freebsd 5.3 and 4.9, and osx 10.3.5, other systems
    were the system compiler is a gcc derivative.)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]