Determining if the pthread_create exist failed with the following output: Change Dir: /mnt/Vers1/CorasurWordGen/cpp/yaml-cpp-master/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTryCompileExec1108977944/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec1108977944.dir/build.make CMakeFiles/cmTryCompileExec1108977944.dir/build make[1]: Entering directory '/mnt/Vers1/CorasurWordGen/cpp/yaml-cpp-master/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /mnt/Vers1/CorasurWordGen/cpp/yaml-cpp-master/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1108977944.dir/CheckSymbolExists.c.o /usr/bin/cc -o CMakeFiles/cmTryCompileExec1108977944.dir/CheckSymbolExists.c.o -c /mnt/Vers1/CorasurWordGen/cpp/yaml-cpp-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTryCompileExec1108977944 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1108977944.dir/link.txt --verbose=1 /usr/bin/cc CMakeFiles/cmTryCompileExec1108977944.dir/CheckSymbolExists.c.o -o cmTryCompileExec1108977944 -rdynamic CMakeFiles/cmTryCompileExec1108977944.dir/CheckSymbolExists.c.o:CheckSymbolExists.c:function main: error: undefined reference to 'pthread_create' collect2: error: ld returned 1 exit status CMakeFiles/cmTryCompileExec1108977944.dir/build.make:88: recipe for target 'cmTryCompileExec1108977944' failed make[1]: *** [cmTryCompileExec1108977944] Error 1 make[1]: Leaving directory '/mnt/Vers1/CorasurWordGen/cpp/yaml-cpp-master/build/CMakeFiles/CMakeTmp' Makefile:118: recipe for target 'cmTryCompileExec1108977944/fast' failed make: *** [cmTryCompileExec1108977944/fast] Error 2 File /mnt/Vers1/CorasurWordGen/cpp/yaml-cpp-master/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include int main(int argc, char** argv) { (void)argv; #ifndef pthread_create return ((int*)(&pthread_create))[argc]; #else (void)argc; return 0; #endif } Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /mnt/Vers1/CorasurWordGen/cpp/yaml-cpp-master/build/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTryCompileExec4181932339/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec4181932339.dir/build.make CMakeFiles/cmTryCompileExec4181932339.dir/build make[1]: Entering directory '/mnt/Vers1/CorasurWordGen/cpp/yaml-cpp-master/build/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /mnt/Vers1/CorasurWordGen/cpp/yaml-cpp-master/build/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec4181932339.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec4181932339.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.0/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec4181932339 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec4181932339.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec4181932339.dir/CheckFunctionExists.c.o -o cmTryCompileExec4181932339 -rdynamic -lpthreads /usr/bin/ld: error: cannot find -lpthreads CMakeFiles/cmTryCompileExec4181932339.dir/CheckFunctionExists.c.o:CheckFunctionExists.c:function main: error: undefined reference to 'pthread_create' collect2: error: ld returned 1 exit status CMakeFiles/cmTryCompileExec4181932339.dir/build.make:88: recipe for target 'cmTryCompileExec4181932339' failed make[1]: *** [cmTryCompileExec4181932339] Error 1 make[1]: Leaving directory '/mnt/Vers1/CorasurWordGen/cpp/yaml-cpp-master/build/CMakeFiles/CMakeTmp' Makefile:118: recipe for target 'cmTryCompileExec4181932339/fast' failed make: *** [cmTryCompileExec4181932339/fast] Error 2