undefined reference to `pthread_create'
Error after make
:
[ 23%] Linking CXX shared library ../../../lib/libSofaSimulationCore.so
CMakeFiles/SofaSimulationCore.dir/DefaultTaskScheduler.cpp.o: In function `sofa::simulation::WorkerThread::create_and_attach(sofa::simulation::DefaultTaskScheduler* const&)':
DefaultTaskScheduler.cpp:(.text+0x69f): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libSofaSimulationCore.so] Error 1
make[1]: *** [SofaKernel/SofaFramework/SofaSimulationCore/CMakeFiles/SofaSimulationCore.dir/all] Error 2
make: *** [all] Error 2