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.

Bug 194088 - Preprocessor Definitions ignored
Summary: Preprocessor Definitions ignored
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-06 14:50 UTC by javydreamercsw
Modified: 2011-01-06 20:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (10.62 KB, application/x-zip-compressed)
2011-01-06 14:50 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-01-06 14:50:12 UTC
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.
Comment 1 soldatov 2011-01-06 18:12:05 UTC
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"
Comment 2 Thomas Preisler 2011-01-06 20:34:43 UTC
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.