help-gplusplus
[Top][All Lists]
Advanced

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

Re: predifined macros ?


From: Paul Pluzhnikov
Subject: Re: predifined macros ?
Date: Wed, 13 Apr 2005 07:48:06 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

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.

The days when compilers used a separate preprocessor are long gone.
All modern compilers use *integrated* preprocessor.

> If you absolutely need to go through g++

If Ulrich wants to know what g++ defines, he *should* use g++.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

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