我試圖創建一個使用FMOD簡單的MP3播放器:如何在C++中使用FMOD?
#include "inc/fmod.h"
int main()
{
FSOUND_Init(44100, 32, 0);
return 0;
}
試圖編譯程序我得到以下錯誤:
[email protected]:justmp3$ pwd
/media/daten/Entwicklung/C/justmp3
[email protected]:justmp3$ LD_LIBRARY_PATH=$(pwd)/lib
[email protected]:justmp3$ ls $LD_LIBRARY_PATH
libfmodex-4.34.02.so libfmodexL-4.34.02.so
[email protected]:justmp3$ g++ -o mp3 mp3.cpp
mp3.cpp: In function ‘int main()’:
mp3.cpp:8: error: ‘FSOUND_Init’ was not declared in this scope
什麼是我的錯?我怎樣才能讓g ++編譯這個程序?