I asked a question here: https://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?

1 Answer 1


Try to find libogrprovider.so and link against it:

g++ code_out.o -o yourapp -L/path/to/qgis/PlugIns/qgis/ -logrprovider

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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