title: Linux C++ linker /usr/bin/ld
body: <p>I wrote a small application on Redhat Linux 6 using g++ 4.4.6. After compilation, I received an error</p>
  
  <pre><code>/usr/bin/ld: cannot find -lcrypto
  </code></pre>
  
  <p>I did a search for the crypto library and find them here,</p>
  
  <pre><code>[root@STL-DUNKEL01 bin]# find / -name libcrypto*
  /usr/lib64/libcrypto.so.0.9.8e
  /usr/lib64/libcrypto.so.10
  /usr/lib64/libcrypto.so.6
  /usr/lib64/libcrypto.so.1.0.0
  </code></pre>
  
  <p>My question is whether the compilation error is caused by <strong>/usr/bin/ld</strong> not having <strong>/usr/lib64/</strong> in the search path? If yes, how can I add it?</p>
  
  <p>Thanks.</p>