This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 104763 [details] Sample project I've been working on NetBeans 6.x and nightly builds towards 7.0 and noticed an issue recently. First the project no longer opens on 6.x complaining about project versioning. I'm fine with that, I stick to work with nightly builds instead. But all of a sudden my Preprocessor Definitions ignored are just ignored. I use those to enable/disable part of the code but the IDE shows those sections as inactive (gray color). I haven't changed the way those are defined. If I make the definition in the file everything works but of course it doesn't compile due to the redefinition. Any idea or any further detail you need from me? See sample project attached.
1) I see "-D CWT" in "Preprocessor Definitions" text field. Correct value: CWT 2) Project contains C++ file, but CWT is added into "Build|C Compiler" category. Correct category: "Build|C++ Compiler"
Confirmed. If you add the preprocesser def to the right property, it works as expected. Please note: you should not specify the "-D'. It is added automatically.