plugincpp icon indicating copy to clipboard operation
plugincpp copied to clipboard

a modern c++ plugin library

Results 4 plugincpp issues
Sort by recently updated
recently updated
newest added

我想在本地服务启动程序的时候加载插件使用,不需要rpc和http远程调用,根据里面的例子没看出来应该怎么用,是不是还需要一个管理的模块来调用ADD_SERVICE这个函数?

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...

1. `__VA_ARGS__ `在windows上visual studio上不能正确展开,只能被识别为一个参数。 1)可以在cmake中添加`set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:preprocessor")`,但是会带来一些警告。 2)通过宏`#define EXPAND( ... ) __VA_ARGS__`再转一层可以解决。 2. ```c++ template int register_handler(Self&& self, std::string const& name, const Function& f) { register_handler(name, f, &self); return 0;...