1.报错:
# gcc extended-test.c -lpulse -lpulse-simple
/usr/bin/ld: /tmp/ccepJsJD.o: undefined reference to symbol 'sin@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: 无法添加符号: DSO missing from command line
collect2: error: ld returned 1 exit status
2.解决:
<1>.首先查下libm.so.6的位置
# locate libm.so.6
/lib/x86_64-linux-gnu/libm.so.6 //说明库的路径是对的,编译添加-lm
# gcc extended-test.c -lpulse -lpulse-simple -lm