2

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
JrBenito
  • 973
  • 8
  • 30
vktrbhm
  • 35
  • 5
  • provide commands executed and error messages found. Try to be clear on your question and actually make a question. – JrBenito Jul 21 '16 at 13:41
  • 1
    Sorry for the bad first post. I tried to compile with: g++ alhrtf.c -o hrtf -lalut -lal -lalc -lopenal -std=c++11 and got a lot of error messages like: " alhrtf.c:161:28: error: ‘ALC_NUM_HRTF_SPECIFIERS_SOFT’ was not declared in this scope " . – vktrbhm Jul 21 '16 at 14:01
  • no need to be sorry, I´ve edit your question with information you provided. – JrBenito Jul 22 '16 at 13:33

0 Answers0