title: g++ linking local libraries
body: <p>New to C++ and somewhat new to compiled languages in general. I've been passed a university specific code library for a class for use in completing my assignments. However, I cannot figure out how to properly link it. Directories are laid out as follows:</p>
  
  <pre><code>Assignment
      lib
         UniversityCPPLib
            .cpp and .h files
      res
      src
         .cpp for my assignment
  </code></pre>
  
  <p>Just calling</p>
  
  <pre><code>    g++ -o assignment.cpp assignment
  </code></pre>
  
  <p>gives me</p>
  
  <pre><code>    No such file or directory
  </code></pre>
  
  <p>and I am not sure how to use -L to specify the local library.</p>
  
  <p>*EDIT: Also, relatively new to SO in general. Would someone mind telling me why I keep getting downvotes? I am still learning here and will gladly correct myself if I am breaking any of the rules here.</p>