How to compile OpenAL program with g++ (Ubuntu)?
问题 I am trying to find a way of getting OpenAL to work on my computer: Ubuntu 12.10 (running on 2010 intel i7 Macbook Pro) I installed the OpenAL library from the terminal: $ sudo apt-get install libopenal-dev Everything went well. Now I tried to create a simple C++ program where I include the library: #include <iostream> #include <AL/alut.h> using namespace std; int main(){ cout << "Hello, world" << endl; } No matter how hard I tried, the closest I came to finding how to compile it with g++ was