undefined reference to `pthread_create‘ 怎么解决? 靠近源文件后加-lpthread
解决办法靠近源文件后加-lpthread实测解决问题userA@userA-Dell-G15-5511:~/exercise2$ g++ thread.cpp/usr/bin/ld: /tmp/ccY4Oifo.o: in function `std::thread::thread<void (*)(std::mutex&, std::condition_variable&, int const&), std::reference_wrapper<...