Hi,
I am trying to statically link Google Protocol Buffers to my application. I tried every combination i could; but unfortunatelly i couldnt manage to compile...
I am using MSVC2015 compiler with Qt 5.7.1 on Qt Creator.
I compiled the protocol buffers library with the same compiler in statically release mode.
And added it to .pro file:
LIBS += -L$$PWD/libs/ -llibprotobuf
LIBS += -L$$PWD/libs/ -llibprotobuf
To copy to clipboard, switch view to plain text mode
But i am getting hundres of error messages like that:
libprotobuf.lib(common.cc.obj):-1: error: LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in drivermessage.pb.obj
libprotobuf.lib(common.cc.obj):-1: error: LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in drivermessage.pb.obj
To copy to clipboard, switch view to plain text mode
It complains for a mismatch. But i think, i am adding the static library as it should be. Am i missing something ? Any idea?
Here is a test project containing static probuf libraries:
https://dl.dropboxusercontent.com/u/.../Messaging.rar
Thanks in advance..
Bookmarks