title: /usr/bin/ld: cannot find
body: <p>I created a <code>.so</code> file and put it in the location <code>/opt/lib</code> and added this path to <code>LD_LIBRARY_PATH</code> now after this when I try to compile my main program with the following command:</p>
  
  <pre><code>g++ -Wall -I/home/alwin/Development/Calculator/ main.cpp -lcalc -o calculator
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>/usr/bin/ld: cannot find -lcalc
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>Can someone help me with this. 
  I created the shared library using the code blocks IDE</p>