libboost库冲突问题解决
libboost库安装
interface解决libboost库的问题
下载libboost1.65.1,libboost_1_65_1
到/home/software/目录
./booststrap.sh
sudo ./b2 install
安装完成后会显示如下信息:
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/home/software/boost_1_65_1
The following directory should be added to linker library paths:
/home/software/boost_1_65_1/stage/lib
libboost库配置cmakelists.txt
set(Boost_LIBRARIES "/home/software/boost_1_65_1/stage/lib")
set(Boost_INCLUDE_DIRS "/home/software/boost_1_65_1/boost")
# find_package(Boost 1.65.0 COMPONENTS system filesystem REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
target_link_libraries(main
${Boost_LIBRARIES}
)