Code::Blocks Forums

User forums => Help => Topic started by: p3tr on December 14, 2012, 01:48:02 pm

Title: wxwidgets app crashing after compile in codeblocks 12.11
Post by: p3tr on December 14, 2012, 01:48:02 pm
Hello.

i have wxPack_v2.8.12.01 installed on my windows 7 x64 pc.
i used this to write wxwidgets applications in codeblocks 10.05
i use mingw compiler (standard version with codeblocks).

i uninstalled 10.05, and installed 12.11.
i created a new test wxwidgets application which compiled but crashed.

i uninstalled 12.11 and installed 10.05 and created another test application which compiled and ran as exppected.

i uninstalled 10.05 and installed 12.11, and created a new test application and same thing (application compiles but crashes)

i do remember using 12.11 rc1 with wxwidgets, so it is something about the release itself.
when try compile the 10.05 project in 12.11 it crashes, so i don't think it is related to the project either.

also:
once i install 12.11, my 12.11 rc1 compiles the test application but it crashes too.
the rc1 uses my codeblocks' copy of mingw.  so that means it is an issue with my mingw?

what am i doing wrong, or what can i do to solve this?
should i use a different version of wxpack, or should i change my version of mingw?

thanks.
peter
Title: Re: wxwidgets app crashing after compile in codeblocks 12.11
Post by: Jenna on December 14, 2012, 03:22:55 pm
This is answered several times.
The 12.11 ships with a newer version of MinGW (obviously).
Your wxWidgets has to be compiled with the same version of MinGW as your code is, otherwise this leads to crashes.
The same can happen with other precompiled third-party libs also.
Title: Re: wxwidgets app crashing after compile in codeblocks 12.11
Post by: p3tr on December 14, 2012, 03:26:41 pm
i figured it's not the IDE, but i knew you would know what to do.
so thanks for responding.  this helps.  :)
Title: Re: wxwidgets app crashing after compile in codeblocks 12.11
Post by: ChaoJie on December 21, 2012, 08:10:52 am
I have a same issue like you.
Did you solved it ?
If yes,please tell me how to do.
thanks.
Title: Re: wxwidgets app crashing after compile in codeblocks 12.11
Post by: oBFusCATed on December 21, 2012, 08:54:33 am
Your wxWidgets has to be compiled with the same version of MinGW as your code is, otherwise this leads to crashes.