protobuf
protobuf copied to clipboard
Unresolved externals after getting grpc package from vcpkg
I built grpc getting it from vcpkg, and it was the time I got the nearest to compiling the HelloWorld example provided with grpc. In fact, this time I only have 3 unroslved externals error, instead of the usual 30 to 70.
Here it is the list of errors:
1>libprotobuf.lib(libprotobuf.dll) : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __thiscall google::protobuf::internal::ArenaStringPtr::GetNoArena(void)const " (?GetNoArena@ArenaStringPtr@internal@protobuf@google@@QBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) already defined in helloworld.pb.obj 1>libprotobuf.lib(libprotobuf.dll) : error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __cdecl google::protobuf::internal::GetEmptyStringAlreadyInited(void)" (?GetEmptyStringAlreadyInited@internal@protobuf@google@@YAABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) already defined in helloworld.pb.obj 1>helloworld.grpc.pb.obj : error LNK2001: unresolved external symbol "private: static int google::protobuf::io::CodedInputStream::default_recursion_limit_" (?default_recursion_limit_@CodedInputStream@io@protobuf@google@@0HA) 1>helloworld.pb.obj : error LNK2001: unresolved external symbol "class google::protobuf::internal::ExplicitlyConstructed<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > google::protobuf::internal::fixed_address_empty_string" (?fixed_address_empty_string@internal@protobuf@google@@3V?$ExplicitlyConstructed@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@123@A) 1>helloworld.pb.obj : error LNK2001: unresolved external symbol "bool google::protobuf::internal::proto3_preserve_unknown_" (?proto3_preserve_unknown_@internal@protobuf@google@@3_NA)
What do you think I am still missing?
Can i up this?
On grpc's issues page, they said that could be because of protobuf library version I'm linking the project against may be different from the one grpc library is using, even if I used both of them from the vcpkg package.
I build grpc
and protobuf
from scratch like described here. I linked gpr.lib
, grpc.lib
, grpc++.lib
and libprotobuf.lib
to my project. This is what get while compiling the project. Any ideas? I'm struggling for days with this problem!!
grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl AddDescriptors_google_2fprotobuf_2fwrappers_2eproto(void)" (?AddDescriptors_google_2fprotobuf_2fwrappers_2eproto@@YAXXZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""struct google::protobuf::internal::SCCInfo<0> scc_info_Empty_google_2fprotobuf_2fempty_2eproto" (?scc_info_Empty_google_2fprotobuf_2fempty_2eproto@@3U?$SCCInfo@$0A@@internal@protobuf@google@@A)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl AddDescriptors_google_2fprotobuf_2fempty_2eproto(void)" (?AddDescriptors_google_2fprotobuf_2fempty_2eproto@@YAXXZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static unsigned char * __cdecl 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@@SAPAEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAE@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""private: unsigned int __thiscall google::protobuf::io::CodedInputStream::ReadTagFallback(unsigned int)" (?ReadTagFallback@CodedInputStream@io@protobuf@google@@AAEII@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""private: struct std::pair<unsigned __int64,bool> __thiscall google::protobuf::io::CodedInputStream::ReadVarint64Fallback(void)" (?ReadVarint64Fallback@CodedInputStream@io@protobuf@google@@AAE?AU?$pair@_K_N@std@@XZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""private: int __thiscall google::protobuf::io::CodedInputStream::ReadVarintSizeAsIntFallback(void)" (?ReadVarintSizeAsIntFallback@CodedInputStream@io@protobuf@google@@AAEHXZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""private: __int64 __thiscall google::protobuf::io::CodedInputStream::ReadVarint32Fallback(unsigned int)" (?ReadVarint32Fallback@CodedInputStream@io@protobuf@google@@AAE_JI@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: bool __thiscall google::protobuf::io::CodedInputStream::DecrementRecursionDepthAndPopLimit(int)" (?DecrementRecursionDepthAndPopLimit@CodedInputStream@io@protobuf@google@@QAE_NH@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: struct std::pair<int,int> __thiscall google::protobuf::io::CodedInputStream::IncrementRecursionDepthAndPushLimit(int)" (?IncrementRecursionDepthAndPushLimit@CodedInputStream@io@protobuf@google@@QAE?AU?$pair@HH@std@@H@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl google::protobuf::internal::InitSCCImpl(struct google::protobuf::internal::SCCInfoBase *)" (?InitSCCImpl@internal@protobuf@google@@YAXPAUSCCInfoBase@123@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl google::protobuf::internal::VerifyVersion(int,int,char const *)" (?VerifyVersion@internal@protobuf@google@@YAXHHPBD@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl google::protobuf::internal::AssignDescriptors(struct google::protobuf::internal::AssignDescriptorsTable *)" (?AssignDescriptors@internal@protobuf@google@@YAXPAUAssignDescriptorsTable@123@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: void __thiscall google::protobuf::internal::LogFinisher::operator=(class google::protobuf::internal::LogMessage &)" (??4LogFinisher@internal@protobuf@google@@QAEXAAVLogMessage@123@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: void __thiscall google::protobuf::internal::ArenaImpl::AddCleanup(void *,void (__cdecl*)(void *))" (?AddCleanup@ArenaImpl@internal@protobuf@google@@QAEXPAXP6AX0@Z@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: void * __thiscall google::protobuf::internal::ArenaImpl::AllocateAlignedAndAddCleanup(unsigned int,void (__cdecl*)(void *))" (?AllocateAlignedAndAddCleanup@ArenaImpl@internal@protobuf@google@@QAEPAXIP6AXPAX@Z@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: void * __thiscall google::protobuf::internal::ArenaImpl::AllocateAligned(unsigned int)" (?AllocateAligned@ArenaImpl@internal@protobuf@google@@QAEPAXI@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""class google::protobuf::internal::ExplicitlyConstructed<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > google::protobuf::internal::fixed_address_empty_string" (?fixed_address_empty_string@internal@protobuf@google@@3V?$ExplicitlyConstructed@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@123@A)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static unsigned int __cdecl google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(class google::protobuf::UnknownFieldSet const &)" (?ComputeUnknownFieldsSize@WireFormat@internal@protobuf@google@@SAIABVUnknownFieldSet@34@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static unsigned char * __cdecl google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(class google::protobuf::UnknownFieldSet const &,unsigned char *)" (?SerializeUnknownFieldsToArray@WireFormat@internal@protobuf@google@@SAPAEABVUnknownFieldSet@34@PAE@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static void __cdecl google::protobuf::internal::WireFormat::SerializeUnknownFields(class google::protobuf::UnknownFieldSet const &,class google::protobuf::io::CodedOutputStream *)" (?SerializeUnknownFields@WireFormat@internal@protobuf@google@@SAXABVUnknownFieldSet@34@PAVCodedOutputStream@io@34@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static bool __cdecl google::protobuf::internal::WireFormat::SkipField(class google::protobuf::io::CodedInputStream *,unsigned int,class google::protobuf::UnknownFieldSet *)" (?SkipField@WireFormat@internal@protobuf@google@@SA_NPAVCodedInputStream@io@34@IPAVUnknownFieldSet@34@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl google::protobuf::internal::OnShutdownRun(void (__cdecl*)(void const *),void const *)" (?OnShutdownRun@internal@protobuf@google@@YAXP6AXPBX@Z0@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static void __cdecl google::protobuf::internal::ReflectionOps::Merge(class google::protobuf::Message const &,class google::protobuf::Message *)" (?Merge@ReflectionOps@internal@protobuf@google@@SAXABVMessage@34@PAV534@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl google::protobuf::internal::DestroyMessage(void const *)" (?DestroyMessage@internal@protobuf@google@@YAXPBX@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl google::protobuf::internal::AddDescriptors(struct google::protobuf::internal::DescriptorTable *,void (__cdecl*const *)(void),int)" (?AddDescriptors@internal@protobuf@google@@YAXPAUDescriptorTable@123@PBQ6AXXZH@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: class google::protobuf::internal::LogMessage & __thiscall google::protobuf::internal::LogMessage::operator<<(char const *)" (??6LogMessage@internal@protobuf@google@@QAEAAV0123@PBD@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall google::protobuf::internal::LogMessage::~LogMessage(void)" (??1LogMessage@internal@protobuf@google@@QAE@XZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall google::protobuf::internal::LogMessage::LogMessage(enum google::protobuf::LogLevel,char const *,int)" (??0LogMessage@internal@protobuf@google@@QAE@W4LogLevel@23@PBDH@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static void __cdecl google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(int,class google::protobuf::MessageLite const &,class google::protobuf::io::CodedOutputStream *)" (?WriteMessageMaybeToArray@WireFormatLite@internal@protobuf@google@@SAXHABVMessageLite@34@PAVCodedOutputStream@io@34@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static void __cdecl google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class google::protobuf::io::CodedOutputStream *)" (?WriteBytesMaybeAliased@WireFormatLite@internal@protobuf@google@@SAXHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCodedOutputStream@io@34@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static void __cdecl google::protobuf::internal::WireFormatLite::WriteBool(int,bool,class google::protobuf::io::CodedOutputStream *)" (?WriteBool@WireFormatLite@internal@protobuf@google@@SAXH_NPAVCodedOutputStream@io@34@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static void __cdecl google::protobuf::internal::WireFormatLite::WriteUInt64(int,unsigned __int64,class google::protobuf::io::CodedOutputStream *)" (?WriteUInt64@WireFormatLite@internal@protobuf@google@@SAXH_KPAVCodedOutputStream@io@34@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static void __cdecl google::protobuf::internal::WireFormatLite::WriteUInt32(int,unsigned int,class google::protobuf::io::CodedOutputStream *)" (?WriteUInt32@WireFormatLite@internal@protobuf@google@@SAXHIPAVCodedOutputStream@io@34@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static void __cdecl google::protobuf::internal::WireFormatLite::WriteInt64(int,__int64,class google::protobuf::io::CodedOutputStream *)" (?WriteInt64@WireFormatLite@internal@protobuf@google@@SAXH_JPAVCodedOutputStream@io@34@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static void __cdecl google::protobuf::internal::WireFormatLite::WriteInt32(int,int,class google::protobuf::io::CodedOutputStream *)" (?WriteInt32@WireFormatLite@internal@protobuf@google@@SAXHHPAVCodedOutputStream@io@34@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static bool __cdecl google::protobuf::internal::WireFormatLite::ReadBytes(class google::protobuf::io::CodedInputStream *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *)" (?ReadBytes@WireFormatLite@internal@protobuf@google@@SA_NPAVCodedInputStream@io@34@PAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""class google::protobuf::EmptyDefaultTypeInternal google::protobuf::_Empty_default_instance_" (?_Empty_default_instance_@protobuf@google@@3VEmptyDefaultTypeInternal@12@A)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""class google::protobuf::StringValueDefaultTypeInternal google::protobuf::_StringValue_default_instance_" (?_StringValue_default_instance_@protobuf@google@@3VStringValueDefaultTypeInternal@12@A)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""private: void __thiscall google::protobuf::UnknownFieldSet::ClearFallback(void)" (?ClearFallback@UnknownFieldSet@protobuf@google@@AAEXXZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static class google::protobuf::UnknownFieldSet const * __cdecl google::protobuf::UnknownFieldSet::default_instance(void)" (?default_instance@UnknownFieldSet@protobuf@google@@SAPBV123@XZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: void __thiscall google::protobuf::UnknownFieldSet::MergeFrom(class google::protobuf::UnknownFieldSet const &)" (?MergeFrom@UnknownFieldSet@protobuf@google@@QAEXABV123@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual unsigned char * __thiscall google::protobuf::Empty::InternalSerializeWithCachedSizesToArray(unsigned char *)const " (?InternalSerializeWithCachedSizesToArray@Empty@protobuf@google@@UBEPAEPAE@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual bool __thiscall google::protobuf::Empty::MergePartialFromCodedStream(class google::protobuf::io::CodedInputStream *)" (?MergePartialFromCodedStream@Empty@protobuf@google@@UAE_NPAVCodedInputStream@io@23@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual unsigned int __thiscall google::protobuf::Empty::ByteSizeLong(void)const " (?ByteSizeLong@Empty@protobuf@google@@UBEIXZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: void __thiscall google::protobuf::Empty::MergeFrom(class google::protobuf::Empty const &)" (?MergeFrom@Empty@protobuf@google@@QAEXABV123@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual __thiscall google::protobuf::Empty::~Empty(void)" (??1Empty@protobuf@google@@UAE@XZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall google::protobuf::Empty::Empty(class google::protobuf::Empty const &)" (??0Empty@protobuf@google@@QAE@ABV012@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual unsigned char * __thiscall google::protobuf::MessageLite::InternalSerializeWithCachedSizesToArray(unsigned char *)const " (?InternalSerializeWithCachedSizesToArray@MessageLite@protobuf@google@@UBEPAEPAE@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual unsigned char * __thiscall google::protobuf::MessageLite::SerializeWithCachedSizesToArray(unsigned char *)const " (?SerializeWithCachedSizesToArray@MessageLite@protobuf@google@@UBEPAEPAE@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall google::protobuf::MessageLite::SerializeWithCachedSizes(class google::protobuf::io::CodedOutputStream *)const " (?SerializeWithCachedSizes@MessageLite@protobuf@google@@UBEXPAVCodedOutputStream@io@23@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall google::protobuf::MessageLite::InitializationErrorString(void)const " (?InitializationErrorString@MessageLite@protobuf@google@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class google::protobuf::MessageLite * __thiscall google::protobuf::MessageLite::New(class google::protobuf::Arena *)const " (?New@MessageLite@protobuf@google@@UBEPAV123@PAVArena@23@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""private: virtual void __thiscall google::protobuf::Message::SetCachedSize(int)const " (?SetCachedSize@Message@protobuf@google@@EBEXH@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall google::protobuf::Message::SerializeWithCachedSizes(class google::protobuf::io::CodedOutputStream *)const " (?SerializeWithCachedSizes@Message@protobuf@google@@UBEXPAVCodedOutputStream@io@23@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual unsigned int __thiscall google::protobuf::Message::ByteSizeLong(void)const " (?ByteSizeLong@Message@protobuf@google@@UBEIXZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual bool __thiscall google::protobuf::Message::MergePartialFromCodedStream(class google::protobuf::io::CodedInputStream *)" (?MergePartialFromCodedStream@Message@protobuf@google@@UAE_NPAVCodedInputStream@io@23@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall google::protobuf::Message::CheckTypeAndMergeFrom(class google::protobuf::MessageLite const &)" (?CheckTypeAndMergeFrom@Message@protobuf@google@@UAEXABVMessageLite@23@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual bool __thiscall google::protobuf::Message::IsInitialized(void)const " (?IsInitialized@Message@protobuf@google@@UBE_NXZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall google::protobuf::Message::Clear(void)" (?Clear@Message@protobuf@google@@UAEXXZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes 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)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual unsigned int __thiscall google::protobuf::Message::SpaceUsedLong(void)const " (?SpaceUsedLong@Message@protobuf@google@@UBEIXZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall google::protobuf::Message::DiscardUnknownFields(void)" (?DiscardUnknownFields@Message@protobuf@google@@UAEXXZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall google::protobuf::Message::InitializationErrorString(void)const " (?InitializationErrorString@Message@protobuf@google@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall google::protobuf::Message::MergeFrom(class google::protobuf::Message const &)" (?MergeFrom@Message@protobuf@google@@UAEXABV123@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall google::protobuf::Message::CopyFrom(class google::protobuf::Message const &)" (?CopyFrom@Message@protobuf@google@@UAEXABV123@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual unsigned char * __thiscall google::protobuf::StringValue::InternalSerializeWithCachedSizesToArray(unsigned char *)const " (?InternalSerializeWithCachedSizesToArray@StringValue@protobuf@google@@UBEPAEPAE@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual bool __thiscall google::protobuf::StringValue::MergePartialFromCodedStream(class google::protobuf::io::CodedInputStream *)" (?MergePartialFromCodedStream@StringValue@protobuf@google@@UAE_NPAVCodedInputStream@io@23@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual unsigned int __thiscall google::protobuf::StringValue::ByteSizeLong(void)const " (?ByteSizeLong@StringValue@protobuf@google@@UBEIXZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: void __thiscall google::protobuf::StringValue::MergeFrom(class google::protobuf::StringValue const &)" (?MergeFrom@StringValue@protobuf@google@@QAEXABV123@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual __thiscall google::protobuf::StringValue::~StringValue(void)" (??1StringValue@protobuf@google@@UAE@XZ)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall google::protobuf::StringValue::StringValue(class google::protobuf::StringValue const &)" (??0StringValue@protobuf@google@@QAE@ABV012@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""private: static class google::protobuf::StringValue * __cdecl google::protobuf::Arena::CreateMaybeMessage<class google::protobuf::StringValue>(class google::protobuf::Arena *)" (??$CreateMaybeMessage@VStringValue@protobuf@google@@$$V@Arena@protobuf@google@@CAPAVStringValue@12@PAV012@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""private: static class google::protobuf::Empty * __cdecl google::protobuf::Arena::CreateMaybeMessage<class google::protobuf::Empty>(class google::protobuf::Arena *)" (??$CreateMaybeMessage@VEmpty@protobuf@google@@$$V@Arena@protobuf@google@@CAPAVEmpty@12@PAV012@@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""private: void __thiscall google::protobuf::Arena::OnArenaAllocation(class type_info const *,unsigned int)const " (?OnArenaAllocation@Arena@protobuf@google@@ABEXPBVtype_info@@I@Z)".
1>grpc_client.pb.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""struct google::protobuf::internal::SCCInfo<0> scc_info_StringValue_google_2fprotobuf_2fwrappers_2eproto" (?scc_info_StringValue_google_2fprotobuf_2fwrappers_2eproto@@3U?$SCCInfo@$0A@@internal@protobuf@google@@A)".
1>C:\Users\martin\source\repos\grpc_test_client\Release\grpc_test_client.exe : fatal error LNK1120: 76 nicht aufgelöste Externe
Did you try running set "PROTOBUF_USE_DLLS="
beforehand?
https://github.com/protocolbuffers/protobuf/blob/214c77e1b76e63e512bd675d1c300c80438642b6/cmake/README.md#dlls-vs-static-linking https://github.com/protocolbuffers/protobuf/issues/2502#issuecomment-412868718
Works for me. There are more libs needed than the 4 i mentioned.
Gotcha. Presumably this could be added to the CMake (or other build system) build process of these libraries.
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.
This issue is labeled inactive
because the last activity was over 90 days ago.
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it.
This issue was closed and archived because there has been no new activity in the 14 days since the inactive
label was added.