title: Linux cc compilation of library in directory within project?
body: <p>My directory structure looks like the following:</p>
  
  <pre><code>-xmllib
      -libxml++-1.0.a
  -main.cc
  </code></pre>
  
  <p>..and I issue the command:</p>
  
  <pre><code>cc -lstdc++ -L./xmllib -llibxml++-1.0.a main.cc
  </code></pre>
  
  <p>But then it tells me that it can't find the binary for the library...even though I issued the command from the root directory.</p>
  
  <pre><code>/usr/bin/ld: cannot find -llibxml++-1.0.a main.cc
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>Is there any reason why cc can't find the binary library?</p>
  
  <p>I'm using cc version 2.96 (yes, it's old).</p>