On Fri, Jun 17, 2016 at 6:20 PM, Ace Slelt <taijus...@gmail.com> wrote:

> I'm writting a plugin for rFactor to send data from the game to my app.
> This plugin is a .dll written in c++. When I want to use Protocol Buffers
> I'm getting some errors which in a winformapplication doesn't. I'm using
> Protocol Buffers 3.0 and these are my steps:
>
> 1- Compile the protobuf library in MDd runtime because that plugin is
> based in MDd.
> 2- Add all the include headers from google inside Visual Studio include.
> 3 -Compile protoc and extract my two files to add to my project.
> 4 - I added the files and link the lib to my project, this way : #pragma
> comment(lib,"libprotobuf.lib")
> 5 - Include "addressbook.pb.h" and addressbook.pb.cc
>
How did you include addressbook.pb.cc in your project? The errors are
complaining addressbook.pb.cc is not in your project.


> 6 - Compile and getting the following errors.
>
> I tried to use 2.6.1 and I have the same errors. I'm Lost...
>
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "void __fastcall
> google::protobuf::internal::VerifyVersion(int,int,char const *)"
> (?VerifyVersion@internal@protobuf@google@@YIXHHPBD@Z) sin resolver al que
> se hace referencia en la función "void __fastcall
> tutorial::protobuf_AddDesc_addressbook_2eproto(void)"
> (?protobuf_AddDesc_addressbook_2eproto@tutorial@@YIXXZ)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "void __fastcall
> google::protobuf::internal::OnShutdown(void (__fastcall*)(void))"
> (?OnShutdown@internal@protobuf@google@@YIXP6IXXZ@Z) sin resolver al que
> se hace referencia en la función "void __fastcall
> tutorial::protobuf_AddDesc_addressbook_2eproto(void)"
> (?protobuf_AddDesc_addressbook_2eproto@tutorial@@YIXXZ)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "void __fastcall
> google::protobuf::GoogleOnceInitImpl(int *,class google::protobuf::Closure
> *)" (?GoogleOnceInitImpl@protobuf@google@@YIXPAHPAVClosure@12@@Z) sin
> resolver al que se hace referencia en la función "void __fastcall
> google::protobuf::GoogleOnceInit(int *,void (__fastcall*)(void))"
> (?GoogleOnceInit@protobuf@google@@YIXPAHP6IXXZ@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "void __fastcall
> google::protobuf::internal::InitEmptyString(void)"
> (?InitEmptyString@internal@protobuf@google@@YIXXZ) sin resolver al que se
> hace referencia en la función "class std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> > const & __fastcall
> google::protobuf::internal::GetEmptyString(void)" (?GetEmptyString@internal
> @protobuf@google@@YIABV?$basic_string@DU?$char_traits@D@std@
> @V?$allocator@D@2@@std@@XZ)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static
> class google::protobuf::DescriptorPool const * __fastcall
> google::protobuf::DescriptorPool::generated_pool(void)"
> (?generated_pool@DescriptorPool@protobuf@google@@SIPBV123@XZ) sin
> resolver al que se hace referencia en la función "void __fastcall
> tutorial::protobuf_AssignDesc_addressbook_2eproto(void)"
> (?protobuf_AssignDesc_addressbook_2eproto@tutorial@@YIXXZ)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static void
> __fastcall google::protobuf::DescriptorPool::InternalAddGeneratedFile(void
> const *,int)" (?InternalAddGeneratedFile@DescriptorPool@protobuf@google
> @@SIXPBXH@Z) sin resolver al que se hace referencia en la función "void
> __fastcall tutorial::protobuf_AddDesc_addressbook_2eproto(void)"
> (?protobuf_AddDesc_addressbook_2eproto@tutorial@@YIXXZ)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static
> class google::protobuf::MessageFactory * __fastcall
> google::protobuf::MessageFactory::generated_factory(void)"
> (?generated_factory@MessageFactory@protobuf@google@@SIPAV123@XZ) sin
> resolver al que se hace referencia en la función "void __fastcall
> tutorial::protobuf_AssignDesc_addressbook_2eproto(void)"
> (?protobuf_AssignDesc_addressbook_2eproto@tutorial@@YIXXZ)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static void
> __fastcall
> google::protobuf::MessageFactory::InternalRegisterGeneratedFile(char const
> *,void (__fastcall*)(class std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> > const &))"
> (?InternalRegisterGeneratedFile@MessageFactory@protobuf@google
> @@SIXPBDP6IXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@
> @std@@@Z@Z) sin resolver al que se hace referencia en la función "void
> __fastcall tutorial::protobuf_AddDesc_addressbook_2eproto(void)"
> (?protobuf_AddDesc_addressbook_2eproto@tutorial@@YIXXZ)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static void
> __fastcall
> google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(class
> google::protobuf::Descriptor const *,class google::protobuf::Message const
> *)" (?InternalRegisterGeneratedMessage@MessageFactory@protobuf@google
> @@SIXPBVDescriptor@23@PBVMessage@23@@Z) sin resolver al que se hace
> referencia en la función "void __fastcall tutorial::`anonymous
> namespace'::protobuf_RegisterTypes(class std::basic_string<char,struct
> std::char_traits<char>,class std::allocator<char> > const &)"
> (?protobuf_RegisterTypes@?A0x8445cdb3@tutorial@@YIXABV?$basic_string@DU
> ?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static
> unsigned char * __fastcall
> google::protobuf::io::CodedOutputStream::WriteStringWithSizeToArray(class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > const &,unsigned char *)"
> (?WriteStringWithSizeToArray@CodedOutputStream@io@protobuf@google@
> @SIPAEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@
> @PAE@Z) sin resolver al que se hace referencia en la función "public:
> static unsigned char * __fastcall
> google::protobuf::internal::WireFormatLite::WriteStringToArray(int,class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > const &,unsigned char *)"
> (?WriteStringToArray@WireFormatLite@internal@protobuf@google@
> @SIPAEHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@
> @PAE@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static
> unsigned char * __fastcall
> google::protobuf::io::CodedOutputStream::WriteVarint64ToArray(unsigned
> __int64,unsigned char *)" (?WriteVarint64ToArray@CodedOutputStream
> @io@protobuf@google@@SIPAE_KPAE@Z) sin resolver al que se hace referencia
> en la función "public: static unsigned char * __fastcall
> google::protobuf::io::CodedOutputStream::WriteVarint32SignExtendedToArray(int,unsigned
> char *)" (?WriteVarint32SignExtendedToArray@CodedOutputStream@io@protobuf
> @google@@SIPAEHPAE@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "private: static
> unsigned char * __fastcall
> google::protobuf::io::CodedOutputStream::WriteVarint32FallbackToArray(unsigned
> int,unsigned char *)" (?WriteVarint32FallbackToArray@CodedOutputStream
> @io@protobuf@google@@CIPAEIPAE@Z) sin resolver al que se hace referencia
> en la función "public: static unsigned char * __fastcall
> google::protobuf::io::CodedOutputStream::WriteTagToArray(unsigned
> int,unsigned char *)" (?WriteTagToArray@CodedOutputStream@io@protobuf
> @google@@SIPAEIPAE@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "private: static int
> __fastcall
> google::protobuf::io::CodedOutputStream::VarintSize32Fallback(unsigned
> int)" (?VarintSize32Fallback@CodedOutputStream@io@protobuf@google@@CIHI@Z)
> sin resolver al que se hace referencia en la función "public: static int
> __fastcall google::protobuf::io::CodedOutputStream::VarintSize32(unsigned
> int)" (?VarintSize32@CodedOutputStream@io@protobuf@google@@SIHI@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static bool
> __fastcall google::protobuf::internal::WireFormatLite::ReadString(class
> google::protobuf::io::CodedInputStream *,class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > *)" (?ReadString@WireFormatLite@internal@protobuf
> @google@@SI_NPAVCodedInputStream@io@34@PAV?$basic_string@DU?$char_traits@D
> @std@@V?$allocator@D@2@@std@@@Z) sin resolver al que se hace referencia
> en la función "public: virtual bool __thiscall
> tutorial::Person::MergePartialFromCodedStream(class
> google::protobuf::io::CodedInputStream *)"
> (?MergePartialFromCodedStream@Person@tutorial@@UAE_NPAVCodedInputStream@io
> @protobuf@google@@@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static void
> __fastcall
> google::protobuf::internal::WireFormatLite::WriteInt32(int,int,class
> google::protobuf::io::CodedOutputStream *)" (?WriteInt32@WireFormatLite
> @internal@protobuf@google@@SIXHHPAVCodedOutputStream@io@34@@Z) sin
> resolver al que se hace referencia en la función "public: virtual void
> __thiscall tutorial::Person::SerializeWithCachedSizes(class
> google::protobuf::io::CodedOutputStream *)const "
> (?SerializeWithCachedSizes@Person@tutorial@@UBEXPAVCodedOutputStream@io
> @protobuf@google@@@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static void
> __fastcall
> google::protobuf::internal::WireFormatLite::WriteEnum(int,int,class
> google::protobuf::io::CodedOutputStream *)" (?WriteEnum@WireFormatLite
> @internal@protobuf@google@@SIXHHPAVCodedOutputStream@io@34@@Z) sin
> resolver al que se hace referencia en la función "public: virtual void
> __thiscall tutorial::Person_PhoneNumber::SerializeWithCachedSizes(class
> google::protobuf::io::CodedOutputStream *)const "
> (?SerializeWithCachedSizes@Person_PhoneNumber@tutorial@
> @UBEXPAVCodedOutputStream@io@protobuf@google@@@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static void
> __fastcall
> google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(int,class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > const &,class
> google::protobuf::io::CodedOutputStream *)"
> (?WriteStringMaybeAliased@WireFormatLite@internal@protobuf@google@
> @SIXHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@
> @PAVCodedOutputStream@io@34@@Z) sin resolver al que se hace referencia en
> la función "public: virtual void __thiscall
> tutorial::Person::SerializeWithCachedSizes(class
> google::protobuf::io::CodedOutputStream *)const "
> (?SerializeWithCachedSizes@Person@tutorial@@UBEXPAVCodedOutputStream@io
> @protobuf@google@@@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static void
> __fastcall
> google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(int,class
> google::protobuf::MessageLite const &,class
> google::protobuf::io::CodedOutputStream *)"
> (?WriteMessageMaybeToArray@WireFormatLite@internal@protobuf@google@
> @SIXHABVMessageLite@34@PAVCodedOutputStream@io@34@@Z) sin resolver al que
> se hace referencia en la función "public: virtual void __thiscall
> tutorial::AddressBook::SerializeWithCachedSizes(class
> google::protobuf::io::CodedOutputStream *)const "
> (?SerializeWithCachedSizes@AddressBook@tutorial@
> @UBEXPAVCodedOutputStream@io@protobuf@google@@@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static void
> __fastcall google::protobuf::internal::ReflectionOps::Merge(class
> google::protobuf::Message const &,class google::protobuf::Message *)"
> (?Merge@ReflectionOps@internal@protobuf@google@@SIXABVMessage@34@PAV534@@Z)
> sin resolver al que se hace referencia en la función "public: virtual void
> __thiscall tutorial::AddressBook::MergeFrom(class google::protobuf::Message
> const &)" (?MergeFrom@AddressBook@tutorial@@UAEXABVMessage@protobuf
> @google@@@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static bool
> __fastcall google::protobuf::internal::WireFormat::SkipField(class
> google::protobuf::io::CodedInputStream *,unsigned int,class
> google::protobuf::UnknownFieldSet *)" (?SkipField@WireFormat
> @internal@protobuf@google@@SI_NPAVCodedInputStream@io
> @34@IPAVUnknownFieldSet@34@@Z) sin resolver al que se hace referencia en
> la función "public: virtual bool __thiscall
> tutorial::AddressBook::MergePartialFromCodedStream(class
> google::protobuf::io::CodedInputStream *)"
> (?MergePartialFromCodedStream@AddressBook@tutorial@
> @UAE_NPAVCodedInputStream@io@protobuf@google@@@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static void
> __fastcall
> google::protobuf::internal::WireFormat::SerializeUnknownFields(class
> google::protobuf::UnknownFieldSet const &,class
> google::protobuf::io::CodedOutputStream *)"
> (?SerializeUnknownFields@WireFormat@internal@protobuf@google@
> @SIXABVUnknownFieldSet@34@PAVCodedOutputStream@io@34@@Z) sin resolver al
> que se hace referencia en la función "public: virtual void __thiscall
> tutorial::AddressBook::SerializeWithCachedSizes(class
> google::protobuf::io::CodedOutputStream *)const "
> (?SerializeWithCachedSizes@AddressBook@tutorial@
> @UBEXPAVCodedOutputStream@io@protobuf@google@@@Z)
> 1>addressbook.pb.obj : error LNK2019: símbolo externo "public: static
> unsigned char * __fastcall
> google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(class
> google::protobuf::UnknownFieldSet const &,unsigned char *)"
> (?SerializeUnknownFieldsToArray@WireFormat@internal@protobuf@google@
> @SIPAEABVUnknownFieldSet@34@PAE@Z) sin resolver al que se hace referencia
> en la función "public: virtual unsigned char * __thiscall
> tutorial::AddressBook::SerializeWithCachedSizesToArray(unsigned char
> *)const " (?SerializeWithCachedSizesToArray@AddressBook@tutorial@
> @UBEPAEPAE@Z)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to