User forums > General (but related to Code::Blocks)
Code betwen "#ifdef MY_SYMBOL" and "#endif" are grayed out
(1/1)
cuiewk86:
Betwen the preprocesor conditionals (# ifdef, #endif) the code is grayed out, even if the
coresponding symbols are defined in a included header
PS. I am using C::B 12.11 rev 8629 on Windows XP
euzkoarima:
Same problem here!!
C::B 12.11
Ubuntu 12.04 x86_64
euzkoarima:
I've just read this thread http://forums.codeblocks.org/index.php/topic,17393.0.html
Works ok with defines in build options and defines in the same source, but fail with defines in headers !!
cuiewk86:
--- Quote from: euzkoarima on January 18, 2013, 11:05:30 pm ---I've just read this thread http://forums.codeblocks.org/index.php/topic,17393.0.html
Works ok with defines in build options and defines in the same source, but fail with defines in headers !!
--- End quote ---
It does not work ok. If the symbol is undefined later in the file, the change is not recognized by the
program
Off the topic: I don't know how to insert an image in my post. I tried "Insert Image", but cannot paste the
file between the tags.
Alpha:
See explanations here and here.
For an image, upload it to an image hosting site (for example PasteAll), then put the url in the [img]http://www.pasteall.org/pic/show.php?id=XXXXX[/img] tags. Or, if it is a small file, you could attach it (under additional options)... but keep in mind that forum space is limited, so it may be deleted.
Navigation
[0] Message Index
Go to full version