Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: zouxiz on April 24, 2010, 12:07:27 pm
-
Hello everyone:
I'm a newbie to CB, I created a demo with wxWidgets(a simple "hello world" app), build success but run failed.
It prompted like this:
(http://i41.tinypic.com/nxszl.jpg)
I use the Windows XP Professional Chinese Edition, the prompt generally means "
wxHello.exe - application error
application standard initialization(0xc0000005)failure. Click "OK" to terminate it."
My develepment env: CB 8.02, mingw, wxWidgets-2.9.
It bored me for 2 days. I googled, but found nothing.
someone helps me?
-
Did you build wxWidgets and your program with the same version of MinGW GCC and use the mingw DLL from that installation on running?
Tim S.
-
Did you build wxWidgets and your program with the same version of MinGW GCC and use the mingw DLL from that installation on running?
Tim S.
thanks for your response.
Yes. I'm sure I used the same version of MinGW GCC. I found there are two different mingwm10.dll files, one in mingw/bin and the other in codeblocks install dir. I replace one with the other to make them the same version but helped nothing.
-
This problem could be solved by pass flag --enable-runtime-pseudo-reloc-v2 to the linker(ld).
But in codeblocks, I don't know where to set this flag. In command line, I tested it and it works.
-
What version of mingw are you using?
I found that compiling codeblocks and wxWidgets with 3.4.5 would cause this problem.
When I updated to mingw 4.+, the problem disappeared.
-
What version of mingw are you using?
I found that compiling codeblocks and wxWidgets with 3.4.5 would cause this problem.
When I updated to mingw 4.+, the problem disappeared.
mingw 4.5.0-1.
:(
-
4.5 is pretty new gcc, try older one, 4.4 for example