News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compilation passes, but can't run.

Started by zouxiz, April 24, 2010, 12:07:27 PM

Previous topic - Next topic

zouxiz

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:

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?

stahta01

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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

zouxiz

Quote from: 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.

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.

thynson

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.

Pecan

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.

zouxiz

Quote from: 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.


mingw 4.5.0-1.
:(

oBFusCATed

4.5 is pretty new gcc, try older one, 4.4 for example
(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!]