diff --git a/CMakeLists.txt b/CMakeLists.txt index d5b11cb..115e0df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ else() endif() #Only tested with versions 1.55 and 1.56 -find_package(Boost 1.41.0 COMPONENTS system REQUIRED) +find_package(Boost 1.41.0 COMPONENTS system thread REQUIRED) message("Boost include dir: ${Boost_INCLUDE_DIR}") message("Boost libraries: ${Boost_LIBRARIES}") include_directories(${Boost_INCLUDE_DIR}) diff --git a/http_examples.cpp b/http_examples.cpp index e0fa0a2..b7cedbb 100644 --- a/http_examples.cpp +++ b/http_examples.cpp @@ -2,6 +2,7 @@ #include "client_http.hpp" //Added for the json-example +#define BOOST_SPIRIT_THREADSAFE #include #include diff --git a/https_examples.cpp b/https_examples.cpp index b875004..1011129 100644 --- a/https_examples.cpp +++ b/https_examples.cpp @@ -2,6 +2,7 @@ #include "client_https.hpp" //Added for the json-example +#define BOOST_SPIRIT_THREADSAFE #include #include