This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: cpp


Have a look at the -Wundef flag

Terry

----- Original Message -----
From: "Jeffrey C Knupp" <jknupp@andrew.cmu.edu>
To: <gcc-help@gcc.gnu.org>
Sent: Monday, August 12, 2002 7:13 PM
Subject: cpp


> To whoever sees this,
> I'm a student at Carnegie Mellon University and I've been using the
> preprocessor, cpp, from gcc-3.1. I was wondering if and why when a
previously undefined
> identifier in an #if is used, there is no warning given. For example, if
> the first line of my program is "#if Y" and Y has not been defined, it
> will not execute the code (obviously), but it also won't tell me that the
> identifier wasn't defined. I was wondering if this was done for a reason.
> Hopefully, someone can give me an answer.
>
> Thanks,
> Jeff Knupp
> Carnegie Mellon University
>


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