Hi All,
I am working on Qt/C++ project. I wanted to use protocol buffer so I
downloaded and followed steps to compile and install.
Create custommessage.proto and generated .cc & .h using proto compiler
.pro
SOURCES += Mainwindow.cpp\CustomMessage.pb.cc
HEADERS += Mainwindow.h \ CustomMessage.pb.h
INCLUDEPATH += ../../ProtocolBuf/include
LIBS += -L ../../ProtocolBuf/lib -lprotobuf -lprotoc
I am getting below errors:
CustomMessage.pb.cc:52: error: undefined reference to `google::protobuf::ProtobufOnceType::~ProtobufOnceType()'
ProjectPath\CustomMessage.pb.cc:52: error: undefined reference to `google::protobuf::ProtobufOnceType::~ProtobufOnceType()'
ProjectPath\..\..\ProtocolBuf\include\google\protobuf\stubs\once.h:103: error: undefined reference to `google::protobuf::ProtobufOnceType::Init(void (*)())'
I have lib in place, headers too.
working on Win7, using QtCreator
Could someone suggest me why m getting these error.