relocation R_X86_64_PC32 against symbol `_ZTVN5boost6system14error_categoryE’ can not be used when making a shared object; recompile with -fPIC 笔者验证以下两种方式有效: 在CMakeLists.txt 文件中添加 add_compile_options(-fPIC); set(CMAKE_C_FLAGS“$ {CMAKE_C_FLAGS} -fPIC”) set(CMAK...