terminate called after throwing an instance of 'std::system_error' what(): Unknown error -1 Aborted (core dumped) 编译protobuf的程序,编译没问题,但是一运行就挂了 解决方法: 加上链接参数: -lpthread