QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT
Hello!
I've downloaded & installed QT 4.7.0 Windows version (2010 05)
I had a program which compiled just fine. I wanted to compile it statically, knowing the "disadvantages" of that.
I proceeded like this:
1) Open QT Command Prompt
2) D:\bin\Qt2010_05\qt>configure -static -debug-and-release -opensource -qt-sql-sqlite -qt-zlib -qt-gif -qt-libpng -qt-libjpeg -fast
3) D:\bin\Qt2010_05\qt>mingw32-make sub-src
Everything went fine. But, the problem had arisen when tried to compile again the app. I've got this error:
Code:
In file included from ../app/include/program_options.h:16,
from
../app/main.cpp:10:
../app/include/smtp_connection.h:110: error: ISO C++ forbids declaration of 'QSslSocket' with no type
../app/include/smtp_connection.h:110: error: expected ';' before '*' token
The line of code where the error is triggered:
Code:
QSslSocket* m_connection;
But I've included:
Code:
#include <QSslSocket>
Does anyone know what I've done wrong? And maybe some hints on how to fix it?
More details:
Windows 7 x64
QT 4.7.0 - 2010.05 from website - opensource version
Thanks,
Timo
Re: QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT
Are you sure that the ssl stuff is compiled and linked into your static Qt lib?
I do not explicitly see it in the configure line
Re: QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT
Hmm, in the configure line does not appear. Doesn't it put by default?
I'll check and see.
Timo
Re: QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT
Quote:
Originally Posted by
timotei
Doesn't it put by default?
That's the question. It's possible that the ssl stuff is enabled by default and the error is somewhere else.
But when a device doesn't work I always check if it is plugged in :-)
Re: QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT
Hm... it seems it doesn't :(.
I'm gonna add it and recompile, hopefully it will work.
Timo