Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Compilation passes, but can't run.

(1/2) > >>

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.

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.

--- End quote ---

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.

Navigation

[0] Message Index

[#] Next page

Go to full version