youngyangyang04 / KVstorageBaseRaft-cpp

【代码随想录知识星球】项目分享-基于Raft的k-v存储数据库🔥
574 stars 113 forks source link

请教一下单模块调试问题 #83

Closed PROHansHao closed 1 month ago

PROHansHao commented 1 month ago

我是在Linux下的vscode进行单模块调试,example/rpcExample/callee,会出现类似这种错误 /usr/bin/ld: /tmp/ccvavNMB.o:(.data.rel.ro._ZTV13FriendService[_ZTV13FriendService]+0x20): undefined reference to fixbug::FiendServiceRpc::GetDescriptor()' /usr/bin/ld: /tmp/ccvavNMB.o:(.data.rel.ro._ZTV13FriendService[_ZTV13FriendService]+0x28): undefined reference tofixbug::FiendServiceRpc::CallMethod(google::protobuf::MethodDescriptor const, google::protobuf::RpcController, google::protobuf::Message const, google::protobuf::Message, google::protobuf::Closure*)',应该如何编写调试文件

github-actions[bot] commented 1 month ago

Message that will be displayed on users' first issue

PROHansHao commented 1 month ago

已经解决,还需要将.pd.cc文件链接