编译的时候添加 -pthead 选项试试g++ -pthead xxx.cppste@kldy ~ % g++ --help | grep pthread -pthread Support POSIX threads in generated codeKeyword:-pthread,-lpthread
编译的时候添加 -pthead 选项试试
Keyword:
-pthread,-lpthread