Q1. 按照以下编码增加rpclib报错
find_package(rpclib REQUIRED)
include_directories(${RPCLIB_INCLUDE_DIR})
add_executable(calculator_server calculator_server.cc)
target_link_libraries(calculator_server ${RPCLIB_LIBS} ${CMAKE_THREAD_LIBS_INIT})
Q2. 编译rpclib是静态库.a,如果库依赖librpc.a,库属性是SHARED,那么会报错,该库属性只能使用静态库;
Q3.
需要增加-lpthread