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

REG->6.9b3: OpcUA/Windows: Link error for QMetaObject in namespace

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P1: Critical
    • None
    • 6.9.0 Beta3
    • OpcUA
    • None
    • Windows
    • 17fffda2d (tqtc/dev), 405c8324e (dev), 49f63b3f8 (dev), 67767da88 (6.9), f4b88d97c (tqtc/dev)

    Description

      Steps to reproduce: Add following code to any (opcuaviewer) example:

      #include <QtOpcUa/qopcuanodeids.h>
      ....
      
          auto u = QOpcUa::NodeIds::Namespace0::Unknown;
          qDebug() << u;
      

      Compile and link on Windows, observe:

      exe @C:\temp\opcuaviewer.exe.2940.31.jom
      main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct
          QMetaObject const QOpcUa::NodeIds::staticMetaObject" (__imp_?staticMetaObject@NodeIds@QOpcUa@@3UQMetaObject@@B) 
      referenced in function "class QDebug __cdecl operator<<<enum QOpcUa::NodeIds::Namespace0>(class QDebug,enum QOpcUa::NodeIds::Namespace0)" (??$?6W4Namespace0@NodeIds@QOpcUa@@@@YA?
      AVQDebug@@V0@W4Namespace0@NodeIds@QOpcUa@@@Z)
      

      Attachments

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

        Activity

          People

            basyskom.jannis.voelker Jannis Völker
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: