User forums > General (but related to Code::Blocks)
[Work In Progress] Patches to Compile C::B against wxWidgets 2.9.0
stahta01:
My Patch for Core Code::Blocks non-POD type warnings is to change c_str() to wx_str() this needs tested on more systems I have only tested On Windows XP. An wxWidget's person said this is not a fix that can work everywhere, but it is the simplest one I found for windows.
Tim S
--- Quote ---warning: cannot pass objects of non-POD type ...
call will abort at runtime
--- End quote ---
This patch needs Tested under Linux to confirm it works
--- Code: ---Deleted patch to save space.
--- End code ---
stahta01:
First Patch needed to get Core Code::Blocks to Compile using wxWidgets 2.9.0 and MinGW GCC 4.40
--- Code: ---Deleted to save space.
--- End code ---
stahta01:
--- Quote from: Biplab on May 03, 2009, 05:53:21 am ---
Didn't notice that RC2 is out.
I did build wx without the required CXXFLAGS. Will download RC2 later and use it to build C::B.
--- End quote ---
At one time, under windows GCC 4.x the wxWidgets would have runtime crashes if
CXXFLAGS="-fno-strict-aliasing" was not done. It might be fixed in wxWidgets or MinGW GCC 4.x.
Link to wxWidgets RC2
http://biolpc22.york.ac.uk/pub/2.9.0-rc2/
Tim S
Biplab:
Tim,
I've already have those patches applied. I didn't commit yesterday as it was quite late night. I'd request you to wrap your patches with wxCHECK_VERSION() so that we don't break existing compatibility with wx-2.8.x.
Edit 1: Some of the patches are already in trunk. I'll commit the rest when Berlios is up.
Thanks for your good work and keep posting patches. :)
Regards,
Biplab
stahta01:
--- Quote from: Biplab on May 03, 2009, 07:30:40 am ---Tim,
I've already have those patches applied. I didn't commit yesterday as it was quite late night. I'd request you to wrap your patches with wxCHECK_VERSION() so that we don't break existing compatibility with wx-2.8.x.
Edit 1: Some of the patches are already in trunk. I'll commit the rest when Berlios is up.
Thanks for your good work and keep posting patches. :)
Regards,
Biplab
--- End quote ---
FYI: The wx_str() is the same as c_str() under wxWidgets 2.8 and 2.6.
Once, I get the patches that break wxWidgets 2.8 will wrap with wxCHECK_VERSION().
Note, I will only be checking, against wxWidgets 2.8.4, after I get Code::Blocks Core to compile and Link; still working on that.
Tim S
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version