g++ -Wall --std=c++14 -o "test" "test.cpp"
/tmp/cc5G3qEN.o*: Dans la fonction «*std::thread::thread<void (&)(__gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >, __gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >, __gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >, float const& (*)(float&, float const&)), __gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >&, __gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >&, __gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >&, float const& (*&)(float&, float const&)>(void (&)(__gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >, __gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >, __gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >, float const& (*)(float&, float const&)), __gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >&, __gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >&, __gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >&, float const& (*&)(float&, float const&))*»*:
test.cpp
.text._ZNSt6threadC2IRFvN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEES7_S7_PFRKfRfS9_EEJRS7_SF_SF_RSC_EEEOT_DpOT0_[_ZNSt6threadC5IRFvN9__gnu_cxx17__normal_iteratorIPfSt6vectorIfSaIfEEEES7_S7_PFRKfRfS9_EEJRS7_SF_SF_RSC_EEEOT_DpOT0_]+0x4b)*: référence indéfinie vers «*pthread_create*»
collect2: error: ld returned 1 exit status
Compilation échouée.
Partager