Important: Please read the Qt Code of Conduct -

code only compile in dinamically mode

  • Hi guys. I am trying to compile my program but i only can compile in dinamic mode.
    When i do build static i got this:

    void MainWindow::lookupServers()
    // Create a DNS lookup.
    QDnsLookup *dns = new QDnsLookup(this);
    connect(dns, SIGNAL(finished()),
    this, SLOT(handleServers()));

    // Find the XMPP servers for

    Error; crash tool:
    Starting C:\Qt\Qt5.2.0\Tools\QtCreator\bin\build-qdnslookup-Unnamed-Debug\debug\qdnslookup.exe...
    The program has unexpectedly finished.
    C:\Qt\Qt5.2.0\Tools\QtCreator\bin\build-qdnslookup-Unnamed-Debug\debug\qdnslookup.exe crashed

    So maybe my built is wrong, any suggestion is good received

  • Lifetime Qt Champion


    Run your application through the debugger. You are likely accessing an invalid pointer somewhere.

  • i tried mode release worked fine

  • Lifetime Qt Champion

    That doesn't mean you don't have a bug somewhere. Please, run your debug build with the debugger on. That should help pin-point the problem.

Log in to reply