Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT
Forum Update on Monday, May 27th 2025

QT 4.7.0 - Windows - Cannot find QSslSocket after recompiling static QT

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 4.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    timotei
    wrote on last edited by
    #1

    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:

    @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:
    @
    QSslSocket* m_connection;
    @

    But I've included:
    @
    #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

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Did Qt's configure pick up your OpenSSL installation? Check the output of configure.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        timotei
        wrote on last edited by
        #3

        Well, it says no.

        I thought it's by default ON.

        I'll try and see if I find SSL already built for windows, as until now I've found just the source files on openssl's webpage :(

        Thanks.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          You are welcome.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved