Gooddbird / tinyrpc

c++ async rpc framework. 14w+qps.
Apache License 2.0
1.29k stars 189 forks source link

testcast执行失败 #65

Open bugcat9 opened 1 year ago

bugcat9 commented 1 year ago

安装完成后想运行一下testcast的例子,运行失败了。运行的命令如下

g++ test_tinypb_server.cc ../lib/libtinyrpc.a -o test_tinypb_server 

报的错误是找不相关引用,比如:

/usr/bin/ld: /tmp/ccBramt5.o:(.data.rel.ro._ZTV16QueryServiceImpl[_ZTV16QueryServiceImpl]+0x30): undefined reference to `QueryService::GetRequestPrototype(google::protobuf::MethodDescriptor const*) const'

/root/tinyrpc-main/tinyrpc/comm/config.cc:31: undefined reference to `TiXmlElement::GetText() const'
/usr/bin/ld: /root/tinyrpc-main/tinyrpc/comm/config.cc:35: undefined reference to `TiXmlElement::GetText() const'
AIGC-yuxincai commented 1 year ago

您好,已收到您的来信,谢谢!

Gooddbird commented 1 year ago

你好,需要链接libtinyxml 和 libprotobuf库