Xref: utzoo comp.unix.questions:6249 comp.unix.wizards:7366 comp.lang.c:8543 Path: utzoo!mnetor!uunet!husc6!ut-sally!swrinde!petro!iquery!matt From: matt@iquery.UUCP (Matt Reedy) Newsgroups: comp.unix.questions,comp.unix.wizards,comp.lang.c Subject: 3B2 cpp #ifdef + #include Message-ID: <109@iquery.UUCP> Date: 21 Mar 88 19:07:02 GMT Organization: Programmed Intelligence, San Antonio Lines: 27 Keywords: cpp 3B2 #ifdef #include Has anyone else noticed this on the 3B2 (using C Programming Languages Issue 4 Version 0)? Code fragment: #ifdef XXXXX junk junk #include junk #endif main () { return 0; } If it is compiled using 'cc -c -O junk.c', cpp says: junk.c: 3: bad include syntax Why is cpp trying to interpret the #include when the #ifdef is NOT true? It doesn't complain about the 'junk junk' line, only the #include line! -- Matthew Reedy harvard!adelie!iquery!matt Programmed Intelligence Corp. (512) 822 8703 830 NE Loop 410, Suite 412 "just ONE MORE compile...." San Antonio, TX 78209-1209