This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
cpp
- From: Jeffrey C Knupp <jknupp at andrew dot cmu dot edu>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 12 Aug 2002 14:13:03 -0400 (EDT)
- 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