I use MSVS2008 and I have next problem:
I installed "protocol buffers" from "vsprojects" folder in Debug mode,
like it was recomended in readme.txt.
Next step I took example proto-file addressbook.proto and I had
compiled it by using proto.exe (that i had got above).
I created new solution and added in it next files: addressbook.pb.h,
addressbook.pb.cc, add_person.cc (from examples folder)
Solution comiles fine, but while linking process I have many errors
like this:
addressbook.pb.obj : error LNK2019: unresolved external symbol
"public: __thiscall
google::protobuf::internal::GeneratedMessageReflection::GeneratedMessageReflection(class
google::protobuf::Descriptor const *,class google::protobuf::Message
const *,int const * const,int,int,int,class
google::protobuf::DescriptorPool const *,class
google::protobuf::MessageFactory *,int)" (??
0GeneratedMessageReflection@internal@protobuf@google@@QAE@PBVDescriptor@23@PBVMessage@23@QBHHHHPBVDescriptorPool@23@PAVMessageFactory@23@H@Z)
referenced in function "void __cdecl
tutorial::protobuf_AssignDesc_addressbook_2eproto(void)" (?
protobuf_AssignDesc_addressbook_2eproto@tutorial@@YAXXZ)
addressbook.pb.obj : error LNK2019: unresolved external symbol
"public: static class google::protobuf::MessageFactory * __cdecl
google::protobuf::MessageFactory::generated_factory(void)" (?
generated_factory@MessageFactory@protobuf@google@@SAPAV123@XZ)
referenced in function "void __cdecl
tutorial::protobuf_AssignDesc_addressbook_2eproto(void)" (?
protobuf_AssignDesc_addressbook_2eproto@tutorial@@YAXXZ)
addressbook.pb.obj : error LNK2019: unresolved external symbol
"public: __thiscall
google::protobuf::internal::LogMessage::~LogMessage(void)" (??
1LogMessage@internal@protobuf@google@@QAE@XZ) referenced in function
"void __cdecl
tutorial::protobuf_AssignDesc_addressbook_2eproto(void)" (?
protobuf_AssignDesc_addressbook_2eproto@tutorial@@YAXXZ)
addressbook.pb.obj : error LNK2001: unresolved external symbol
"public: virtual class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __thiscall
google::protobuf::Message::GetTypeName(void)const " (?
GetTypeName@Message@protobuf@google@@UBE?AV?$basic_string@DU?
$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
total 69 errors.
I cannot solve this probelm.
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to prot...@googlegroups.com.
To unsubscribe from this group, send email to protobuf+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
--
#pragma comment(lib, "libprotobuf.lib")