Note that there are some explanatory texts on larger screens.

plurals
  1. POQt4 program unexpectedly finished (exited with code -1073741819)
    primarykey
    data
    text
    <p>I'm using Qt4.8.5(MinGW opensource) + QtCreator2.8.1, just while I'm trying the first "Hello Qt" sample code below, it returns the error:</p> <blockquote> <p>The program has unexpectedly finished.</p> <p>…\HelloQt.exe exited with code -1073741819</p> </blockquote> <pre><code>#include &lt;QApplication&gt; #include &lt;QLabel&gt; int main(int argc, char *argv[]) { QApplication app(argc, argv); QLabel *label = new QLabel("Hello Qt!"); label-&gt;show(); return app.exec(); } </code></pre> <p>Posts said that this error is caused by mistakes such as accessing invalid memories or so, but I don't think this sample code does so?</p> <p>I've been trapped here for a long time. Gratitude for any help :-)</p> <p><strong>EDIT:</strong></p> <p>After trails and errors, I decide to turn to Qt5.1.1 with VS2012 now. Thanks very much for the replies!</p> <p><a href="https://stackoverflow.com/questions/12541060/the-program-has-unexpectedly-finished-qt-creator">This post</a> suggested that the reason may lies in the incompatibility between the MinGW and Qt, after replace the old MinGW with the recommended <a href="http://dldx.csdn.net/fd.php?i=707048635856451&amp;s=1f8a9e81d72d9c7a679ad1bd2e720aa3" rel="nofollow noreferrer">MinGW-gcc440</a> the error code changed to -1073741511 which may means the unaccessible to .dll s.</p> <p>So I followed another post and use the MinGw-gcc4.4.0 to compile the source of Qt, but finally, after hours of compiling, it stopped with error T_T</p> <p>That's all, thank you.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload