[Qt-creator] QSslSocket with Windows All-in-one Install

Scott Morgan blumf at blueyonder.co.uk
Thu Mar 5 18:32:35 CET 2009


Using the QT SDK release for Windows with QT Creator. The following
fails to compile:

#include <QtCore/QCoreApplication>
#include <QtNetwork>
#include <QSslSocket>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    QSslSocket ssl;

    return a.exec();
}

With this message:

main.cpp: In function `int main(int, char**)':
main.cpp:9: error: `QSslSocket' was not declared in this scope
main.cpp:9: error: expected `;' before "ssl"
main.cpp:9: warning: unused variable 'QSslSocket'
mingw32-make[1]: *** [debug/main.o] Error 1

In Linux versions of QT Creator and a source based builds of QT (using
MSVC, so not working with QT-C) the code compiles fine.

I initially thought this was an omission from the Windows release, but
the demo executables bundled with the QT SDK have the secure socket demo
and it runs fine.

Is this a bug or a deliberate omission?

Scott


Scott Morgan wrote:
> I'm using the all-in-one install of QT Creator for Windows and it
> appears to be missing support for QSslSocket. I assume it's something to
> do with not redistributing the openssl lib, but how do I get it working?
>   





More information about the Qt-creator-old mailing list