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

Example not compiling due 'error: ‘sctpSocket’ was not declared in this scope; did you mean ‘QSctpSocket’'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • 6.0.0 RC
    • 6.0.0 Alpha
    • Network
    • Tested on Ubuntu 20.04 x6

    Description

      Example not compiling:

      Examples/Qt-6.0.0/network/multistreamclient

      Build fails with:

      | QSctpSocket
      /home/qt/RTA/qt5/Examples/Qt-6.0.0/network/multistreamclient/client.cpp: In member function ‘void Client::readDatagram(int)’:
      /home/qt/RTA/qt5/Examples/Qt-6.0.0/network/multistreamclient/client.cpp:178:5: error: ‘sctpSocket’ was not declared in this scope; did you mean ‘QSctpSocket’?
       178 | sctpSocket->setCurrentReadChannel(channel);
       | ^~~~~~~~~~
       | QSctpSocket
      /home/qt/RTA/qt5/Examples/Qt-6.0.0/network/multistreamclient/client.cpp: In member function ‘void Client::displayError(QAbstractSocket::SocketError)’:
      /home/qt/RTA/qt5/Examples/Qt-6.0.0/network/multistreamclient/client.cpp:200:39: error: ‘sctpSocket’ was not declared in this scope; did you mean ‘QSctpSocket’?
       200 | .arg(sctpSocket->errorString()));
       | ^~~~~~~~~~
       | QSctpSocket
      /home/qt/RTA/qt5/Examples/Qt-6.0.0/network/multistreamclient/client.cpp: In member function ‘void Client::writeDatagram(const QByteArray&)’:
      /home/qt/RTA/qt5/Examples/Qt-6.0.0/network/multistreamclient/client.cpp:214:9: error: ‘sctpSocket’ was not declared in this scope; did you mean ‘QSctpSocket’?
       214 | if (sctpSocket->isValid() && sctpSocket->state() == QAbstractSocket::ConnectedState) {
       | ^~~~~~~~~~
       | QSctpSocket
      make[2]: *** [CMakeFiles/multistreamclient.dir/build.make:108: CMakeFiles/multistreamclient.dir/client.cpp.o] Error 1
      make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/multistreamclient.dir/all] Error 2
      make: *** [Makefile:149: all] Error 2
      

      SHA1: ca02358af27b458739cba29086ff6ad19196d431

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            joaijala Johanna Äijälä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes