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. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/0OHnL0ZUZAYJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
