title: How to correct symbol lookup error in MongoDb C client
body: <p>When I run the <a href="http://mongoc.org/libmongoc/current/tutorial.html#making-a-connection" rel="nofollow noreferrer">hello_mongoc</a> test app (renamed to mongotest), the output looks like this:</p>
  
  <pre><code>{ "ok" : 1 }
  ./mongotest: symbol lookup error: /usr/local/lib/libmongoc-1.0.so.0: undefined symbol: bson_validate_with_error
  </code></pre>
  
  <p>The app is build with:</p>
  
  <pre><code>cc -o mongotest mongotest.o -lmongoc-1.0 -lbson-1.0
  </code></pre>
  
  <p>and gives no compilation warnings/errors.</p>
  
  <p>This is in /usr/local/lib:</p>
  
  <pre><code>lrwxrwxrwx  1 root staff      16 Oct  5 11:38 libbson-1.0.so -&gt; libbson-1.0.so.0
  lrwxrwxrwx  1 root staff      20 Oct  5 11:38 libbson-1.0.so.0 -&gt; libbson-1.0.so.0.0.0
  -rw-r--r--  1 root staff  549180 Oct  5 11:29 libbson-1.0.so.0.0.0
  -rw-r--r--  1 root staff  744738 Oct  5 11:30 libbson-static-1.0.a
  lrwxrwxrwx  1 root staff      18 Oct  5 11:38 libmongoc-1.0.so -&gt; libmongoc-1.0.so.0
  lrwxrwxrwx  1 root staff      22 Oct  5 11:38 libmongoc-1.0.so.0 -&gt; libmongoc-1.0.so.0.0.0
  -rw-r--r--  1 root staff 2162580 Oct  5 11:31 libmongoc-1.0.so.0.0.0
  -rw-r--r--  1 root staff 3553982 Oct  5 11:33 libmongoc-static-1.0.a
  </code></pre>
  
  <p>I am running on a raspberry pi 3B+</p>