Link error with qpid-proton-0.17.0

回眸只為那壹抹淺笑 提交于 2021-02-08 06:45:27

问题


When I build my qpid-proton-0.17.0 program I get this link error:

undefined reference to proton::event_loop::inject(std::function<void ()>)

Here is how I build:

g++ -std=c++14 myprog.cpp -o myprog -lqpid-proton-cpp -lboost_system -lcrypto -lssl

Am I missing a library?

Also, without -std=c++14 or -std=c++11 the link issue goes away. But I will need -std=c++11 at least.


回答1:


I rebuilt qpid-proton-0.17.0 libraries with -DCMAKE_CXX_FLAGS=-std=c++11 and that fixed my issue.



来源:https://stackoverflow.com/questions/44030140/link-error-with-qpid-proton-0-17-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!