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

Compile error with QStringView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.10
    • Core: Other
    • None
    • ArchLinux with GCC 7.1.1 (x86_64)

    Description

      I tried the current dev branch (b55970ec0fa2766a3c93279842581c742f043c29) of qtbase today.

      ./configure --prefix=[...]/build/dist -openssl-linked -no-compile-examples -confirm-license -opensource
      

      Qt compiles without problems.

       

      After I tried to build our software against this Qt we get the following error:

      [...]/dist/include/QtCore/quuid.h:120:29: error: 'QStringView' has not been declared
           static QUuid fromString(QStringView string) Q_DECL_NOTHROW;
      
      [...]/dist/include/QtCore/qdatetime.h:95:22: error: 'QStringView' has not been declared
           QString toString(QStringView format) const;
                            ^~~~~~~~~~~
      [...]/dist/include/QtCore/qdatetime.h:171:22: error: 'QStringView' has not been declared
           QString toString(QStringView format) const;
                            ^~~~~~~~~~~
      [...]/dist/include/QtCore/qdatetime.h:307:22: error: 'QStringView' has not been declared
           QString toString(QStringView format) const;
      

      The use the following definitions in our software:

      -DQT_MESSAGELOGCONTEXT
      -DQT_NO_CAST_FROM_BYTEARRAY
      -DQT_NO_CAST_TO_ASCII
      -DQT_RESTRICTED_CAST_FROM_ASCII
      -DQT_NO_FOREACH
      -DQT_NO_KEYWORDS
      -DQT_NO_EXCEPTIONS
      -DQT_STRICT_ITERATORS
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            misery André Klitzing
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes