title: libPocoMongoDB.so.71: cannot open shared object file: No such file or directory
body: <p>I am using poco library to connect to mongodb. My code is getting compiled but while running out file it is giving me the below error</p>
  <pre><code>./test_mongo: error while loading shared libraries: libPocoMongoDB.so.71: cannot open shared object file: No such file or directory
  </code></pre>
  <p>libPocoMongoDB.so.71 is already existing at /usr/local/lib</p>
  <p>Here is my c++ code</p>
  <pre><code>#include &quot;Poco/MongoDB/MongoDB.h&quot;
  #include &quot;Poco/MongoDB/Connection.h&quot;
  #include &quot;Poco/MongoDB/Database.h&quot;
  #include &quot;Poco/MongoDB/Cursor.h&quot;
  #include &quot;Poco/MongoDB/Array.h&quot;
  
  
  int main(int argc, char** argv)
  {
  
  
      try
      {
              Poco::MongoDB::Connection connection(&quot;localhost&quot;, 27017);
      }
      catch (Poco::Exception&amp; exc)
      {
              std::cerr &lt;&lt; exc.displayText() &lt;&lt; std::endl;
      }
  
      return 0;
   }
  </code></pre>
  <p>I compiled it using below command</p>
  <pre><code>g++ -o test_mongo test_mongo.cpp -I/usr/local/include -L/usr/local/lib/ -lPocoMongoDB -lPocoNet -lPocoFoundation
  </code></pre>