Those functions are marked "inline", so the compiler should not be emitting references to them. Do you have any unusual inlining settings on your compiler/project?
On Friday, April 28, 2017 at 3:39:59 AM UTC-7, [email protected] wrote: > > Hi, > I am starting to use the protobuf library and have downloaded protobuff > v3.2.0 for windows. > I have made up my <>.proto file and generated the <>.ph.h and <>.pb.cc > files, build the protobuf libraries, created dll files for VC2015, produces > the proc.exe file and included everything in a VS2015 project. All compile > correct, but the linking fails as follows: > > > > 1>protobuf_messages.pb.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) public: void __cdecl > google::protobuf::io::CodedInputStream::GetDirectBufferPointerInline(void > const * *,int *)" > (__imp_?GetDirectBufferPointerInline@CodedInputStream@io@protobuf@google@@QEAAXPEAPEBXPEAH@Z) > > referenced in function "private: static bool __cdecl > google::protobuf::internal::WireFormatLite::ReadRepeatedFixedSizePrimitive<double,1>(int,unsigned > > int,class google::protobuf::io::CodedInputStream *,class > google::protobuf::RepeatedField<double> *)" > (??$ReadRepeatedFixedSizePrimitive@N$00@WireFormatLite@internal@protobuf@google@@CA_NHIPEAVCodedInputStream@io@23@PEAV?$RepeatedField@N@23@@Z) > > 1>protobuf_messages.pb.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) public: static unsigned char const * __cdecl > google::protobuf::io::CodedInputStream::ExpectTagFromArray(unsigned char > const *,unsigned int)" > (__imp_?ExpectTagFromArray@CodedInputStream@io@protobuf@google@@SAPEBEPEBEI@Z) > > referenced in function "private: static bool __cdecl > google::protobuf::internal::WireFormatLite::ReadRepeatedFixedSizePrimitive<double,1>(int,unsigned > > int,class google::protobuf::io::CodedInputStream *,class > google::protobuf::RepeatedField<double> *)" > (??$ReadRepeatedFixedSizePrimitive@N$00@WireFormatLite@internal@protobuf@google@@CA_NHIPEAVCodedInputStream@io@23@PEAV?$RepeatedField@N@23@@Z) > > 1>protobuf_messages.pb.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) public: void __cdecl > google::protobuf::internal::ArenaStringPtr::ClearToEmptyNoArena(class > std::basic_string<char,struct std::char_traits<char>,class > std::allocator<char> > const *)" > (__imp_?ClearToEmptyNoArena@ArenaStringPtr@internal@protobuf@google@@QEAAXPEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) > > referenced in function "public: virtual void __cdecl > satscan_api_priscilla::carrier::Clear(void)" > (?Clear@carrier@satscan_api_priscilla@@UEAAXXZ) > > > > Can anybody able to help me? > > > > Thanks, in advance. > > > > /Dagfinn > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
