GitHub user cgeffect edited a comment on the discussion: 如何链接rocketmq静态库?

使用5.0.1版本, 使用cmake和bazel都编译出了静态库, 在工程中链接时会出现undefine reference xxxx, 
找不到rocketmq里的实现. 感觉cmake写的没有问题. 又把工程中链接的库改为动态库librocketmq.so, 链接没问题. 
但是程序根本启动不了. 一启动就会出现如下错误.
![screenshot-20240417-221451](https://github.com/apache/rocketmq-clients/assets/15692322/34f8be80-dec6-4608-92c8-ef884d0ebee6)

之前使用rocketmq2.x的版本都没有出现过问题. 现在5.x的编译链接搞不定了.


GitHub link: 
https://github.com/apache/rocketmq-clients/discussions/729#discussioncomment-9143761

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@rocketmq.apache.org

Reply via email to