title: how to use open sound libraries OpenAL(freealut ) in eclispe IDE?
body: <p>I successfully installed the OpenAL the with the following command:</p>
  
  <pre><code>  yum install freealut freealut-devel 
  </code></pre>
  
  <p>But the problem after this I add some c++ codes to work with this libraries as below:</p>
  
  <pre><code>     #include &lt;AL/al.h&gt;
       #include &lt;AL/alc.h&gt;
       #include &lt;AL/alut.h&gt;
  
      void init_al()
      {
          ALCdevice *dev = NULL;
          ALCcontext *ctx = NULL;
  
          const char *defname = alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);
          std::cout &lt;&lt; "Default device: " &lt;&lt; defname &lt;&lt; std::endl;
  
          dev = alcOpenDevice(defname);
          ctx = alcCreateContext(dev, NULL);
          alcMakeContextCurrent(ctx);
          alGenBuffers(1, &amp;buf);
  
          /* Fill buffer with Sine-Wave */
          freq = 1440.f;
          seconds = 0.2;
          sample_rate = 22050;
          buf_size = 6000;
  
          samples = new short[buf_size];
          for(int i=0; i&lt;buf_size; ++i) {
              samples[i] = 32760 * sin( (2.f*float(M_PI)*freq)/sample_rate * i );
          }
  
          /* Download buffer to OpenAL */
          alBufferData(buf, AL_FORMAT_MONO16, samples, buf_size, sample_rate);
  
  
          /* Set-up sound source and play buffer */
           src = 0;
          alGenSources(1, &amp;src);
          alSourcei(src, AL_BUFFER, buf);
  
          alGenBuffers(1, &amp;buf);
  
          /* Fill buffer with Sine-Wave */
          freq = 1000.f;
          seconds = 0.2;
          sample_rate = 22050;
          buf_size = 12000;
  
          samples = new short[buf_size];
          float add=1;
          for(int i=0; i&lt;buf_size; ++i) {
              samples[i] = 32760 * sin( (2.f*float(M_PI)*freq)/sample_rate * i );
          }
  
          /* Download buffer to OpenAL */
          alBufferData(buf, AL_FORMAT_MONO16, samples, buf_size, sample_rate);
  
  
          /* Set-up sound source and play buffer */
           src2 = 0;
          alGenSources(1, &amp;src2);
          alSourcei(src2, AL_BUFFER, buf);
  
      }
  </code></pre>
  
  <p>I think my problem is on the linkers that can be added to the Eclipse project proprieties
   I include a linker <strong>alut</strong> but it also indicates an error. what could be my problem?</p>