Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.2
-
None
-
Windows 7
-
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.