Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48714

QtWebSockets: Compilation error when including QtWebSockets file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.6.0 RC
    • 5.5.0
    • WebSockets
    • None
    • Windows 7, msvs2012 express
    • 08582917b43af8670658c210b2cb2a8b06e04252

      The following code doesn't compile when adding the first include (#include <QtWebSockets/QtWebSockets>).
      error C1083: Cannot open include file: 'QObject': No such file or directory... this happens in qmaskgenerator.h
      I really think in qmaskgenerator.h, QtCore is missing in front of QObject (it should be #include<QtCore/QObject>). This solve the problem for me...

      #include <QtWebSockets/QtWebSockets>
      #include <QtCore/QCoreApplication>
      #include <iostream>

      int main(int argc, char *argv[])

      { QCoreApplication app(argc, argv); std::cout<<"hello world!" << std::endl; return app.exec(); }

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Eddy Edward Welbourne
            mmanai Myriam Manaï
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes