Qt 5.0.1 MinGW - programs does not launch - exited with code 0xc0000139
Hello,
I have been a Qt user for years, even though I am new in this forum. I just downloaded Qt 5.0.1 for MinGW. I usually use GCC 4.7.2 to enjoy the last C++11 features. Before downloading Qt 5, I used Qt 4.8.4, and had to compile it myself for GCC 4.7.2.
But now Digia provides binaries for Qt 5. I just installed it, and tried to run a simple program (template GUI project generated by Qt Creator). The program compiles perfectly, but fails to launch. I get a window saying the program has exited with code 0xc0000139. With further investigation, I see that the entry point __gxx_personality_sj0 could not be located in the dynamic link library icuin49.dll. The error really looks like a binary compatibility problem.
I've googled the error and found nothing. It looks like I am the only one with that issue. I use Windows 8 64 bits. I downloaded Qt 5.0.1 for MinGW 32bits, and I compiled my program with MinGW too. The program does not launch, whether I compile it with the version of GCC I installed by myself (4.7.2) or with the GCC version provided by Qt (which is supposed to be the same) :s.
I don't really see what I could do to solve that issue. I could try to re-compile Qt 5 with "my" GCC, but it will take hours and I don't see how it will change anything since my GCC version and Qt's are the same.
Does anyone have any idea?
Thanks a lot.
Sébastien.
Re: Qt 5.0.1 MinGW - programs does not launch - exited with code 0xc0000139
If the versions are the same, why are you using "yours" instead of "Qt's"?
Re: Qt 5.0.1 MinGW - programs does not launch - exited with code 0xc0000139
Thanks for the reply.
I used Qt's first, and it didn't work. Then I tried mine, just to check, and it didn't work either :s.
Re: Qt 5.0.1 MinGW - programs does not launch - exited with code 0xc0000139
Are you trying to launch the program from within QtCreator or manually?
Re: Qt 5.0.1 MinGW - programs does not launch - exited with code 0xc0000139
When I launch from Qt Creator, in debug mode, I get the window "the program has exited with code 0xc0000139".
In release mode, the program crashes when it launches, and "exited with code -1073741511" is written in the console.
When I launch the program manually, after copying every dll supplied by Qt5 in the Qt/5.0.1/MinGW/bin folder, I get the message: "the entry point __gxx_personality_sj0 could not be located in the dynamic link library icuin49.dll".
Thanks for your reply!
Re: Qt 5.0.1 MinGW - programs does not launch - exited with code 0xc0000139
It seems to me you are building and running the project with two different compiler runtimes. I would suggest a drastic approach -- uninstall every Qt and MinGW instance you have and (re)install only one Qt with MinGW set.
Re: Qt 5.0.1 MinGW - programs does not launch - exited with code 0xc0000139
Hi,
I did what you said, and it worked. I renamed my MinGW folder, and discovered that QtCreator was unable to find some exe then, so it did use my GCC. I solved the issue. QtCreator set by default my version of GCC as the version to use, instead of its :s I hadn't noticed.
Thanks a lot!
Re: Qt 5.0.1 MinGW - programs does not launch - exited with code 0xc0000139
Hi,
Same problem here. I just installed QT and I was trying to run the examples. I am using QT 5.0.1 and QT creator 2.7.0. I am using default QT MinGW compiler.
Thanks in advance.
Re: Qt 5.0.1 MinGW - programs does not launch - exited with code 0xc0000139
I don't think you have the same problem because OP had two compilers installed and was mixing the two. You seem to have just one compiler installed.