How to link libs in netbeans (linux)?

前端 未结 2 1739
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-07 02:47

I\'m trying to write a program in c++ to analyze sound. I want to use libsndfile library. I added an option -lsndfile to g++ compiler options. But I get the error: WavReade

相关标签:
2条回答
  • 2020-12-07 03:31

    project properties -> linker -> libraries -> add option -> another option: -lsndfile

    0 讨论(0)
  • 2020-12-07 03:41

    You need to link against -lsndfile library...make sure library path are included so it find library from correct location...check /usr/lib/ to make sure it is present on your system, or add path of correct location for your libs...

    0 讨论(0)
提交回复
热议问题