在 2012年9月26日星期三UTC+8下午6时45分12秒,Deepak Sindhu写道:
>
>
> 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/-/ZfavGdf9g7cJ.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to