Author Topic: wxwidgets app crashing after compile in codeblocks 12.11  (Read 5488 times)

Offline p3tr

  • Single posting newcomer
  • *
  • Posts: 6
wxwidgets app crashing after compile in codeblocks 12.11
« 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
« Last Edit: December 14, 2012, 02:06:45 pm by p3tr »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: wxwidgets app crashing after compile in codeblocks 12.11
« Reply #1 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.

Offline p3tr

  • Single posting newcomer
  • *
  • Posts: 6
Re: wxwidgets app crashing after compile in codeblocks 12.11
« Reply #2 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.  :)

ChaoJie

  • Guest
Re: wxwidgets app crashing after compile in codeblocks 12.11
« Reply #3 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: wxwidgets app crashing after compile in codeblocks 12.11
« Reply #4 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]