Open zoldaten opened 11 months ago
Yes, you have to link with boost_thread
library if you are using any boost/thread*
header.
The other libraries to link depend on the build system you are using. The modern cmake with modern Boost CMakeLists.txt should be able to propagate the -lpthread
dependency. Try the following:
find_package(Boost REQUIRED COMPONENTS thread)
target_link_libraries(BoostTest Boost::thread)
i have trouble with compilation on raspberry pi but finally got in working. heres the code:
i have to add to CMakeLists.txt:
do these things double each other ? but without any of them get a error.