Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: cuiewk86 on January 04, 2013, 08:22:49 pm

Title: Code betwen "#ifdef MY_SYMBOL" and "#endif" are grayed out
Post by: cuiewk86 on January 04, 2013, 08:22:49 pm
Betwen the preprocesor conditionals (# ifdef, #endif) the code is grayed out, even if the
coresponding symbols are defined in a included header

(http://)

PS. I am using C::B 12.11 rev 8629 on Windows XP
Title: Re: Code betwen "#ifdef MY_SYMBOL" and "#endif" are grayed out
Post by: euzkoarima on January 18, 2013, 10:49:14 pm
Same problem here!!
C::B 12.11
Ubuntu 12.04 x86_64
Title: Re: Code betwen "#ifdef MY_SYMBOL" and "#endif" are grayed out
Post by: 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 (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 !!
Title: Re: Code betwen "#ifdef MY_SYMBOL" and "#endif" are grayed out
Post by: cuiewk86 on February 19, 2013, 07:40:27 pm
I've just read this thread http://forums.codeblocks.org/index.php/topic,17393.0.html (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 !!

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.

(http://)   
Title: Re: Code betwen "#ifdef MY_SYMBOL" and "#endif" are grayed out
Post by: Alpha on February 19, 2013, 11:18:59 pm
See explanations here (http://developer.berlios.de/bugs/?func=detailbug&bug_id=18790&group_id=5358) and here (http://developer.berlios.de/bugs/?func=detailbug&bug_id=18757&group_id=5358).

For an image, upload it to an image hosting site (for example PasteAll (http://pasteall.org/)), 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.