Bug report #17338

Updated by Jürgen Fischer over 2 years ago

qgis_core library is fine. This only happen when building python module after <pre>QgsVectorLayerUtils::QgsDuplicateFeatureContext</pre> is added in core/qgsvectorlayerutils.h

Related commit:f7073d0587d6a06e8dd5fe15bebeb907cc71ba57 commit: https://github.com/qgis/QGIS/commit/f7073d0587d6a06e8dd5fe15bebeb907cc71ba57#diff-8cf1ae4dbd0c3f0e28156187dfc5e993

Unresolved nested class methods:
* QList<QgsVectorLayer *> layers() const;
* QgsFeatureIds duplicatedFeatures( QgsVectorLayer *layer ) const;

<pre>
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: class QList<class QgsVectorLayer *> __cdecl QgsVectorLayerUtils::QgsDuplicateFeatureContext::layers(void)const " ([email protected]@[email protected]@[email protected]@@@@XZ) referenced in function "protected: virtual void __cdecl sipQgsMapThemeCollection::disconnectNotify(class QMetaMethod const &)" ([email protected]@@[email protected]@@Z) python_module_qgis__core E:\dev\QGIS-master-new\ms-windows\osgeo4w\build-qgis_master_debug-x86_64\python\sip_corepart2.obj 1
Error LNK2019 unresolved external symbol "public: class QSet<__int64> __cdecl QgsVectorLayerUtils::QgsDuplicateFeatureContext::duplicatedFeatures(class QgsVectorLayer *)const " ([email protected]@[email protected]@[email protected][email protected]@[email protected]@@Z) referenced in function "protected: virtual void __cdecl sipQgsMapThemeCollection::disconnectNotify(class QMetaMethod const &)" ([email protected]@@[email protected]@@Z) python_module_qgis__core E:\dev\QGIS-master-new\ms-windows\osgeo4w\build-qgis_master_debug-x86_64\python\sip_corepart2.obj 1
Error LNK1120 2 unresolved externals python_module_qgis__core E:\dev\QGIS-master-new\ms-windows\osgeo4w\build-qgis_master_debug-x86_64\output\python\qgis\RelWithDebInfo\_core.pyd 1
</pre>

Back