Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

This is not a plug-in that I am trying to build, but a direct usage of analysis functions within a microsoft dll I am writing. I have sucessfully linked all but one catagory of functions into my final executable. I can find entries in the qgis_core.lib and I have it included in the list of paths and libraries in VS 2008. I get the following 12 errors:

1>ShapePublisher.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsApplication::staticMetaObject" (?staticMetaObject@QgsApplication@@2UQMetaObject@@B)
1>ShapePublisher.obj : error LNK2001: unresolved external symbol "private: static bool QgsApplication::mRunningFromBuildDirVERSION_INT" (?mRunningFromBuildDirVERSION_INT@QgsApplication@@0_NA)
1>ShapePublisher.obj : error LNK2001: unresolved external symbol "private: static class QString QgsApplication::mCfgIntDirVERSION_INT" (?mCfgIntDirVERSION_INT@QgsApplication@@0VQString@@A)
1>ShapePublisher.obj : error LNK2001: unresolved external symbol "private: static class QString QgsApplication::mBuildSourcePathVERSION_INT" (?mBuildSourcePathVERSION_INT@QgsApplication@@0VQString@@A)
1>ShapePublisher.obj : error LNK2001: unresolved external symbol "private: static class QString QgsApplication::mBuildOutputPathVERSION_INT" (?mBuildOutputPathVERSION_INT@QgsApplication@@0VQString@@A)
1>ShapePublisher.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsCoordinateTransform::staticMetaObject" (?staticMetaObject@QgsCoordinateTransform@@2UQMetaObject@@B)
1>ShapePublisher.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsMapLayer::staticMetaObject" (?staticMetaObject@QgsMapLayer@@2UQMetaObject@@B)
1>ShapePublisher.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsMapRenderer::staticMetaObject" (?staticMetaObject@QgsMapRenderer@@2UQMetaObject@@B)
1>ShapePublisher.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsVectorLayer::staticMetaObject" (?staticMetaObject@QgsVectorLayer@@2UQMetaObject@@B)
1>ShapePublisher.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsMapLayerRegistry::staticMetaObject" (?staticMetaObject@QgsMapLayerRegistry@@2UQMetaObject@@B)
1>ShapePublisher.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QgsMapCanvas::staticMetaObject" (?staticMetaObject@QgsMapCanvas@@2UQMetaObject@@B)
1>ShapePublisher.obj : error LNK2001: unresolved external symbol "private: static class QStringList QgsApplication::mGdalSkipListVERSION_INT" (?mGdalSkipListVERSION_INT@QgsApplication@@0VQStringList@@A)

I have the complete verbose build log if interested.

Please help as soon as you can.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.