title: how do I solve `ld cannot find -something`
body: <p>When I try running openFrameworks example audioOutputExample in CodeBlocks, I get the following errors:</p>
  
  <p>in Debug: </p>
  
  <blockquote>
    <p>ld cannot find -openframeworksDebug</p>
  </blockquote>
  
  <p>in Release:</p>
  
  <blockquote>
    <p>ld cannot find -openframeworks</p>
  </blockquote>
  
  <p>How do I solve this?</p>
  
  <hr>
  
  <p><em><strong>UPDATES</em></strong>
  Here is why I've tried up to now:</p>
  
  <p><strong>make</strong></p>
  
  <pre><code>cd apps/examples/audioOutputExample/
  make
  </code></pre>
  
  <blockquote>
    <p>[...]</p>
    
    <p>compiling done</p>
    
    <p>to launch the application</p>
    
    <p>cd bin</p>
    
    <p>./audioOutputExample</p>
  </blockquote>
  
  <p><strong>ok</strong></p>
  
  <pre><code>cd bin
  ./audioOutputExample
  </code></pre>
  
  <blockquote>
    <p>./audioOutputExample: error while
    loading shared libraries:
    libfmodex.so: cannot open shared
    object file: No such file or directory</p>
  </blockquote>
  
  <p><strong>Looking for openframeworksDebug</strong></p>
  
  <pre><code>sudo updatedb
  [password]
  locate openframeworksDebug
  </code></pre>
  
  <blockquote>
    <p>[finds nothing]</p>
  </blockquote>
  
  <p><strong>ldconfig</strong></p>
  
  <pre><code>ldconfig
  </code></pre>
  
  <blockquote>
    <p>/sbin/ldconfig.real: Can't create
    temporary cache file
    /etc/ld.so.cache~: Permission denied</p>
  </blockquote>
  
  <pre><code>sudo ldconfig
  </code></pre>
  
  <blockquote>
    <p>[Enter password]</p>
    
    <p>[Finishes very quickly with no output whatsoever]</p>
  </blockquote>