Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

gcc4.7 can't build codeblocks

<< < (5/12) > >>

reckless:
Self compiled version used my previous working compiler (4.6.3) to bootstrap it.
I had a feeling something was of with my gcc build but i just tried one from mingw64 site and it also does it :S
Ill have a try with the one you posted. 

reckless:
Ok tried with the version you posted and its the same 0xc000005 error  ??? may i ask which version of wxwidgets you used ? was it 2.9.
I have a bad feeling that its wxwidgets crashing im using 2.8.11 and tried recompiling it with gcc-4.7.0 the built dll also crashes my working C::B so i guess somethings going totally fubar with wx 2.8.

headkase:

--- Quote from: reckless on April 18, 2012, 12:40:21 am ---Ok tried with the version you posted and its the same 0xc000005 error  ??? may i ask which version of wxwidgets you used ? was it 2.9.
I have a bad feeling that its wxwidgets crashing im using 2.8.11 and tried recompiling it with gcc-4.7.0 the built dll also crashes my working C::B so i guess somethings going totally fubar with wx 2.8.

--- End quote ---

On my Arch Linux machine: my system-installed version of wxgtk is 2.8.12.

However, inside the C::B source-code folder there are folders for wx items such as wxscintella so I'm not sure where you are getting your wxwidgets from.

On Windows I'm using the prebuilt nightly and that includes a wx .dll file that you just drop into the nightly folder.

reckless:
i ment specifically if trying to build codeblocks with gcc-4.7.0 on windows :)
example build codeblocks on windows with gcc-4.7.0 using a previously built wxwidgets (compiled with gcc-4.6.x) = crash.
rebuilding wxwidgets + codeblocks with gcc-4.7.0 on windows = crash.
so my thought was that the old 2.8 version of wxwidgets was somehow incompatible with gcc-4.7.0, strange thing it builds just fine but the dll does not work.
i checked it with depends to see if i was missing a dependency but all looks fine. debugging it turns out that it triggers a buffer overflow in malloc but no pointer to where.
this happens with all versions of gcc-4.7.0 even the latest from trunk so something is definatly fubar.

headkase:
Have you tried to test the wxwidgets .dll on it's own with a minimal test program?  Compile the .dll, compile a small program that uses that dll and just opens a window, maybe makes a few buttons, and waits to close.  That's it.  Once you have wxwidgets working with that test program then try to try it with C::B?

Also, you don't have old wx .dll file(s) sitting in like your C:\Windows folder where they might override anything new you might compile do you?

I see on wxWidgets' download page that only source is provided for Windows so you'll have to compile it at any rate.

Also, your include folders (for .lib and .h, etc) are set up correctly for wx in your compilation environment?  The includes are not mis-matched, as in you aren't using a .h file from one version and attempting to use the corresponding .dll from another version with that .h file?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version