Bug report #17338

sip nested class linker error QgsVectorLayerUtils::QgsDuplicateFeatureContext

Added by Hanif Rifai over 2 years ago. Updated about 2 years ago.

Status:Closed
Priority:Normal
Assignee:Denis Rouzaud
Category:Python bindings / sipify
Affected QGIS version:master Regression?:No
Operating System:Window 10 Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:25235

Description

qgis_core library is fine. This only happen when building python module after

QgsVectorLayerUtils::QgsDuplicateFeatureContext
is added in core/qgsvectorlayerutils.h

Related f7073d0587d6a06e8dd5fe15bebeb907cc71ba57

Unresolved nested class methods:
  • QList<QgsVectorLayer *> layers() const;
  • QgsFeatureIds duplicatedFeatures( QgsVectorLayer *layer ) const;
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    

History

#1 Updated by Denis Rouzaud over 2 years ago

can you describe how to reproduce the error?

#2 Updated by Nyall Dawson over 2 years ago

  • Status changed from Open to Feedback

I suspect this is already fixed - it looked like the original commit was missing a CORE_EXPORT, but a follow up added it. Please confirm.

#3 Updated by Denis Rouzaud over 2 years ago

  • Status changed from Feedback to Closed

#4 Updated by Giovanni Manghi over 2 years ago

  • Resolution set to fixed/implemented

#5 Updated by Jürgen Fischer about 2 years ago

  • Description updated (diff)

#6 Updated by Denis Rouzaud about 2 years ago

Jurgen, shall this be reopened?

Also available in: Atom PDF