No, rebuilding wxWidgets will not make WXWIN_COMPATIBILITY_2_4=0 work. The WXWIN_COMPATIBILITY_2_4=0 means turn off compatibility mode for version 2.4 wxWidgets. The way to fix this issue is to fix Code::Blocks or to set WXWIN_COMPATIBILITY_2_4=1. The main reason to set it to zero is when the user wishes to see if the wxWidgets application will work with the next version which would be 2.7 or 2.8 depending if you mean developement branch or stable. 2.8 does not exist to my knowedge at this time.
I am going to test right now and see if I get the same errors with SVN 3008
Edit: Look at this for more info
http://forums.codeblocks.org/index.php?topic=3474.msg27345Edit: In reply to "To fix errors, need rebuild wx?", you must set WXWIN_COMPATIBILITY_2_4=1 and rebuild wx or you must edit the code in code blocks to not use wxHIDE_READONLY.
If you wish to test CB with 2.7 you must/should edit CB to not use wxHIDE_READONLY.
(Note: I am lazy and I am trying to use #define wxHIDE_READONLY 0 to set wxHIDE_READONLY=0 in the idea that I won't have to edit as many files; i am trying this in the codeblocks defines.)
And, it seems to be required that CB and wxWidgets both have to be compiled with WXWIN_COMPATIBILITY_2_4=0 if CB was compiled with it set to zero. I have to fix my installation of CB now.
Tim S