Results 1 to 9 of 9

Thread: Qt 5.0.1 MinGW - programs does not launch - exited with code 0xc0000139

  1. #1
    Join Date
    Mar 2013
    Posts
    11
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default 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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default 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"?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2013
    Posts
    11
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default 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.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default 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?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Mar 2013
    Posts
    11
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default 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!

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default 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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Mar 2013
    Posts
    11
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default 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!

  8. #8
    Join Date
    Apr 2013
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default 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.

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default 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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. exited with code -1073741819
    By cic in forum Qt Programming
    Replies: 4
    Last Post: 11th November 2011, 23:39
  2. Replies: 4
    Last Post: 11th August 2011, 08:02
  3. Running example project with mingw gives "... exited with code -1073741792" error
    By sibercekirge in forum Installation and Deployment
    Replies: 8
    Last Post: 31st May 2011, 17:33
  4. Program exited with code 03
    By Fallen_ in forum Qt Programming
    Replies: 1
    Last Post: 9th October 2010, 23:09
  5. name.exe exited with code 1.
    By Fallen_ in forum Qt Programming
    Replies: 2
    Last Post: 2nd September 2010, 01:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.