September 22, 2023, Sunday evening
When programming on Linux, if the thread header file is used, the parameter -lpthread must be added when compiling with g++
g++ -g code.cpp -o code -lpthread
September 22, 2023, Sunday evening
When programming on Linux, if the thread header file is used, the parameter -lpthread must be added when compiling with g++
g++ -g code.cpp -o code -lpthread