问题描述 linux下gcc/g++编译遇到问题 undefined reference to clock gettime 解决方法 缺少Real Time库的连接, gcc/g++编译时加入选项 -rt即可