usr/local/include/c++/5.4.0/thread:137: undefined reference to `pthread_create' 在项目的属性页中找linker 中的CommandLine 在其中添加-lpthread 就可以了