This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc-2.95.2 pre-processor bug


> Hi!  I would like to report a pre-processor bug when trying to define the
> "__USE_GNU" macro.  Basically, when I pass -D__USE_GNU to gcc on the
> command line, "__USE_GNU" does not get defined.

Thanks for your bug report. This is not a bug in gcc; please use 'gcc
-v -D__USE_GNU -c usegnu.c' to see how __USE_GNU is passed to the
preprocessor.

Also have a look at /usr/include/features.h, and see how __USE_GNU
gets #undefined. Use 'gcc -E -g3' to see which defines are made at
what location.

To use GNU features in your source, please -D_GNU_SOURCE.

Hope this helps,
Martin

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]