1. 编译链接缺少libpthread.so库
报错:
undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
解决:
添加-lpthread链接项。
2.编译链接缺少liblibm.so库
报错:
undefined reference to symbol 'ceil@@GLIBC_2.2.5'
解决:
添加-lm链接项。
ChatGPT
The errors you're seeing are linker errors, indicating that the linker cannot find the definitions for the pthread_sigmask and ceil functions, which are part of the POSIX threads library (libpthread) and the standard math library (libm), respectively. The suffix @@GLIBC_2.2.5 signifies that these symbols are versioned symbols introd