http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58468
Bug ID: 58468 Summary: Macro gets undefined when source directory is same as macro name. Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: critical Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: ateuscher at datacomm dot ch Content of file src/test.c: #ifndef SRC # error SRC not defined! #endif When precompiled from base directory: cpp -P -DSRC src/test.c src/test.c:3:3: error: #error SRC not defined! # error SRC not defined! ^ There seems to be conflict problem with the macro SRC and the directory src. Tested with MinGW under Windows 7. Older versions doesn't have that problem.