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

[Qt PDF] Multiple definition error for static builds

    XMLWordPrintable

Details

    • dde69e629 (dev), c7a20c54d (6.7), 8f3f47276 (6.5)

    Description

      Two places define a QLoggingCategory called "qLcLink" in global scope:

       

      Consequently, static builds trigger LNK1169 and LNK2005:

      Fehler LNK1169 Mindestens ein mehrfach definiertes Symbol gefunden. test C:\test\debug\test.exe 1
      Fehler LNK2005 "class QLoggingCategory const & __cdecl qLcLink(void)" (?qLcLink@@YAAEBVQLoggingCategory@@XZ) ist bereits in Qt6PdfWidgetsd.lib(qpdfview.cpp.obj) definiert. test C:\test\Qt6Pdfd.lib(qpdflinkmodel.cpp.obj) 1
      

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes