User forums > General (but related to Code::Blocks)

#define preprocessor macro bug

(1/2) > >>

SasMaster:
Hi All.I wonder what's the problem with preprocessor definitions inside  Build Options - > #defines . I was using a version 12.x on Ubuntu and no matter what I defined there it wasn't getting activated inside the ide.I then updated to the latest version and it is still there.Is it a bug?Is anyone aware of it?

Thanks.

cacb:
I use that feature on Windows and Linux and it works the way I expect it to work. Maybe you have more specific information on the problem you are seeing?

stahta01:
FYI: If you are using a custom makefile project then the defines do NOT effect the makefile.

Tim S.

SasMaster:
Nope,I am just putting my defines into "#defines" dialog.But they are not reflected in the editor.The compiler "sees" them as the compilations proceeds according to the flags.

BlueHazzard:
are you talking about editor or compilation?

They are not reflected in the code coloring in the editor, because the editor uses the code highlighting from scintilla and this component has (yet, patches are welcome) no information about the build settings.
If you are talking about compilation i would suggest that you post a full rebuild log here, so we can see what is going on...

greetings

Navigation

[0] Message Index

[#] Next page

Go to full version