例如要静态链接libpthread.a
在qt工程的.pro文件中添加
LIBS += -lpthread
连接声音库
LIBS += -lasound
对于编译报错
error adding symbols: DSO missing from command line
undefined reference to symbol 'snd_pcm_hw_params_set_period_size_near
用LIBS += -lasound就可以解决
例如要静态链接libpthread.a
在qt工程的.pro文件中添加
LIBS += -lpthread
连接声音库
LIBS += -lasound
对于编译报错
error adding symbols: DSO missing from command line
undefined reference to symbol 'snd_pcm_hw_params_set_period_size_near
用LIBS += -lasound就可以解决