title: How do I permanantly add a path to the g++ compiler?
body: <p>I'm currently using a non standard c++ library in my programs, but linking the library everytime I run the code is getting annoying. Right now I'm using</p>
  
  <pre><code>c++ file.cpp -o file -L/path/to/lib -lLibName
  </code></pre>
  
  <p>I tried the following:</p>
  
  <pre><code>CPLUS_INCLUDE_PATH=/path/to/lib
  export CPLUS_INCLUDE_PATH
  </code></pre>
  
  <p>but it neither solved the issue nor gave me an error. What am I doing wrong?</p>