Compile OpenAL-Soft Code Examples

515 Views Asked by At

I just started with OpenAL-Soft and tried to compile the code examples, especially the alhrtf.c file using terminal command as:

g++ alhrtf.c -o hrtf -lalut -lal -lalc -lopenal -std=c++11

I got a bunch of error messages like:

alhrtf.c:161:28: error: ‘ALC_NUM_HRTF_SPECIFIERS_SOFT’ was not declared in this scope

It seems like I need to link the "hrtf" lib.

So my question is, what compiler flags do i have to set?

I'd be very grateful for some help.

Reference:

  • link to the script location: alhrtf.c
  • I am on Ubuntu 16.04
0

There are 0 best solutions below