qicosmos/plugincpp

记录一下编译过程,给其他人做个参考

camel007 opened this issue · 0 comments

gcc: 9.4
boost 1.75.0
ubuntu 14.04

改了几个地方:

  1. CMakeLists.txt 中target_link_libraries(plugin_app ${Boost_LIBRARIES})
    改为
    target_link_libraries(plugin_app ${Boost_LIBRARIES} dl)
    不然会出现dlopen系列为定义
  2. rest_rpc中
    ./include/rest_rpc/rpc_client.hpp 207行
    ./include/rest_rpc/client_utls.hpp 3行
    ./include/rest_rpc/use_asio.hpp 34行
    __cplusplus > 201402L 改为__cplusplus > 201703L

不同编译器可能有所不同