https://blog.csdn.net/bubbleyang/article/details/86291610
7、高精度定时器 posix_timer
编译时报错:undefined reference to symbol ‘timer_settime@@GLIBC_2.3.3’
解决:在编译时添加 -lrt,https://stackoverflow.com/questions/18286738/undefined-reference-to-symbol-timer-settimeglibc-2-3-3
本文解决了在使用高精度定时器posix_timer时遇到的编译错误:undefined reference to symbol ‘timer_settime@@GLIBC_2.3.3’。通过在编译命令中添加-lrt选项,成功解决了该问题。

1226

被折叠的 条评论
为什么被折叠?



