Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: zouxiz on April 24, 2010, 12:07:27 pm

Title: Compilation passes, but can't run.
Post 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?
Title: Re: Compilation passes, but can't run.
Post by: stahta01 on April 24, 2010, 08:02:44 pm
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.
Title: Re: Compilation passes, but can't run.
Post by: zouxiz on April 25, 2010, 08:50:35 am
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.
Title: Re: Compilation passes, but can't run.
Post by: thynson on April 27, 2010, 08:22:20 am
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.
Title: Re: Compilation passes, but can't run.
Post by: Pecan on April 27, 2010, 03:03:12 pm
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.
Title: Re: Compilation passes, but can't run.
Post by: zouxiz on April 27, 2010, 03:36:54 pm
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.
:(
Title: Re: Compilation passes, but can't run.
Post by: oBFusCATed on April 27, 2010, 03:53:09 pm
4.5 is pretty new gcc, try older one, 4.4 for example