解决:修改报错文件,加入#include <boost/thread/lock_guard.hpp> 转载于:https://www.cnblogs.com/qiumingcheng/p/7711481.html