Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testcast执行失败 #65

Open
bugcat9 opened this issue Jul 1, 2023 · 2 comments
Open

testcast执行失败 #65

bugcat9 opened this issue Jul 1, 2023 · 2 comments

Comments

@bugcat9
Copy link

bugcat9 commented Jul 1, 2023

安装完成后想运行一下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
Copy link

AIGC-yuxincai commented Jul 1, 2023 via email

@Gooddbird
Copy link
Owner

你好,需要链接libtinyxml 和 libprotobuf库

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants