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

QStringView not exported

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      windows 7 64-bit
    • Platform/s:
      Windows

      Description

      QStringView is declared like this (qstringview.h, line 104):

      class QStringView

      That is, Q_CORE_EXPORT is missing which makes the functions of the class unexported and therefore unlinkable on windows. Code as simple as:

      class QString (*_6807)(const class QString&) = &QRegularExpression::anchoredPattern;

      fails to link with LLD as a library. Strangely enough, Qt Creator manages to build it when it obviously shouldn't. Do I need to use any special settings which Creator does internally?

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            ddobrev Dimitar Dobrev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes