简单答案:ldflags += -lpthread 我想说的话:-lpthread是在link的时候包含pthread这个库。这个是用在Makefile里面的,你要学一学make和Makefile的用法。学过之后就自然清楚了。