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

Compiling with /CLR option causes linker errors

    XMLWordPrintable

Details

    • 9f8a724cda6783ca275fb810e7d1fc05bf840e2e

    Description

      Compiling app/dll with /CLR option causes following linker errors:

      Error 2 error LNK2005: "public: __thiscall `public: __thiscall QList<class QTouchEvent::TouchPoint>::QList<class QTouchEvent::TouchPoint>(class QList<class QTouchEvent::TouchPoint> const &)'::`5'::Cleanup::Cleanup(struct QListData::Data *)" (??0Cleanup@?4???0?$QList@VTouchPoint@QTouchEvent@@@@QAE@ABV1@@Z@QAE@PAUData@QListData@@@Z) already defined in Page_WebServiceSetup.obj C:\Development\LaserNet\6_8_0\Projects\VS90\WebServiceModuleUI.obj
      Error 3 error LNK2005: "public: __thiscall `public: __thiscall QList<class QTouchEvent::TouchPoint>::QList<class QTouchEvent::TouchPoint>(class QList<class QTouchEvent::TouchPoint> const &)'::`5'::Cleanup::~Cleanup(void)" (??1Cleanup@?4???0?$QList@VTouchPoint@QTouchEvent@@@@QAE@ABV1@@Z@QAE@XZ) already defined in Page_WebServiceSetup.obj C:\Development\LaserNet\6_8_0\Projects\VS90\WebServiceModuleUI.obj
      Error 4 error LNK2005: "public: __thiscall `public: __thiscall QList<class QFileInfo>::QList<class QFileInfo>(class QList<class QFileInfo> const &)'::`5'::Cleanup::Cleanup(struct QListData::Data *)" (??0Cleanup@?4???0?$QList@VQFileInfo@@@@QAE@ABV1@@Z@QAE@PAUData@QListData@@@Z) already defined in Page_WebServiceSetup.obj C:\Development\LaserNet\6_8_0\Projects\VS90\WebServiceModuleUI.obj
      Error 5 error LNK2005: "public: __thiscall `public: __thiscall QList<class QFileInfo>::QList<class QFileInfo>(class QList<class QFileInfo> const &)'::`5'::Cleanup::~Cleanup(void)" (??1Cleanup@?4???0?$QList@VQFileInfo@@@@QAE@ABV1@@Z@QAE@XZ) already defined in Page_WebServiceSetup.obj C:\Development\LaserNet\6_8_0\Projects\VS90\WebServiceModuleUI.obj
      Error 6 error LNK2005: "public: __thiscall `public: __thiscall QList<class QString>::QList<class QString>(class QList<class QString> const &)'::`5'::Cleanup::Cleanup(struct QListData::Data *)" (??0Cleanup@?4???0?$QList@VQString@@@@QAE@ABV1@@Z@QAE@PAUData@QListData@@@Z) already defined in Page_WebServiceSetup.obj C:\Development\LaserNet\6_8_0\Projects\VS90\WebServicePropertyBrowserConfig.obj
      Error 7 error LNK2005: "public: __thiscall `public: __thiscall QList<class QString>::QList<class QString>(class QList<class QString> const &)'::`5'::Cleanup::~Cleanup(void)" (??1Cleanup@?4???0?$QList@VQString@@@@QAE@ABV1@@Z@QAE@XZ) already defined in Page_WebServiceSetup.obj C:\Development\LaserNet\6_8_0\Projects\VS90\WebServicePropertyBrowserConfig.obj
      Error 8 error LNK2005: "public: __thiscall `public: __thiscall QList<class QTouchEvent::TouchPoint>::QList<class QTouchEvent::TouchPoint>(class QList<class QTouchEvent::TouchPoint> const &)'::`5'::Cleanup::Cleanup(struct QListData::Data *)" (??0Cleanup@?4???0?$QList@VTouchPoint@QTouchEvent@@@@QAE@ABV1@@Z@QAE@PAUData@QListData@@@Z) already defined in Page_WebServiceSetup.obj C:\Development\LaserNet\6_8_0\Projects\VS90\moc-WebServiceModule.obj
      Error 9 error LNK2005: "public: __thiscall `public: __thiscall QList<class QTouchEvent::TouchPoint>::QList<class QTouchEvent::TouchPoint>(class QList<class QTouchEvent::TouchPoint> const &)'::`5'::Cleanup::~Cleanup(void)" (??1Cleanup@?4???0?$QList@VTouchPoint@QTouchEvent@@@@QAE@ABV1@@Z@QAE@XZ) already defined in Page_WebServiceSetup.obj C:\Development\LaserNet\6_8_0\Projects\VS90\m
      

      FIX PROPOSAL: MovE struct Cleanup from Q_OUTOFLINE_TEMPLATE QList<T>::QList(const QList<T> &l) to private section. See attached image.

      Attachments

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

        Activity

          People

            richb Richard Browne
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes