title: Compile OpenAL-Soft Code Examples
body: <p>I just started with <strong><a href="https://github.com/kcat/openal-soft/" rel="nofollow">OpenAL-Soft</a></strong> and tried to compile the code examples, especially the <code>alhrtf.c</code> file using terminal command as: </p>
  
  <pre><code>g++ alhrtf.c -o hrtf -lalut -lal -lalc -lopenal -std=c++11
  </code></pre>
  
  <p>I got a bunch of error messages like:</p>
  
  <blockquote>
    <p>alhrtf.c:161:28: error: ‘ALC_NUM_HRTF_SPECIFIERS_SOFT’ was not declared in this scope </p>
  </blockquote>
  
  <p>It seems like I need to link the "hrtf" lib. </p>
  
  <p>So my question is, what compiler flags do i have to set?</p>
  
  <p>I'd be very grateful for some help.</p>
  
  <p><strong>Reference:</strong></p>
  
  <ul>
  <li>link to the script location: <a href="https://github.com/kcat/openal-soft/blob/master/examples/alhrtf.c" rel="nofollow">alhrtf.c</a></li>
  <li>I am on Ubuntu 16.04</li>
  </ul>