Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I asked a question here: http://stackoverflow.com/questions/14790463/qgis-copy-layer-in-c-plugin and I was suggested to find the library which provides QgsOgrProvider::createEmptyLayer() function. Can anyone help me with this? Thanks.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Try to find libogrprovider.so and link against it:

g++ code_out.o -o yourapp -L/path/to/qgis/PlugIns/qgis/ -logrprovider
share|improve this answer
Thanks, it helped. –  TinF Feb 12 '13 at 11:05

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.