How to link libs in netbeans (linux)?

前端 未结 2 1745
佛祖请我去吃肉
佛祖请我去吃肉 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: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...

提交回复
热议问题