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]

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]