报错场景是编译的时候没问题,但是运行的时候会报错:terminate called after throwing an instance of 'std::system_error'
原因是基本是编译的时候忘了加 -pthread或者-lpthread了。
报错场景是编译的时候没问题,但是运行的时候会报错:terminate called after throwing an instance of 'std::system_error'
原因是基本是编译的时候忘了加 -pthread或者-lpthread了。