title: Unable to compile C++ code using OTLv4 library
body: <p>Could you help me figure out what's missing here?<br>
  I'm trying to compile a c++ program using the OTL 4 library but I'm getting an error.  </p>
  
  <p>Environment Details:  </p>
  
  <ul>
  <li>I've installed Oracle DB XE 10G on an Ubuntu 11.04 VM.  </li>
  <li>SQL*Plus and the server itself is running as it should be.  </li>
  </ul>
  
  <p>Compile code is:</p>
  
  <pre><code>g++ -o &lt;output&gt;.exe &lt;source&gt;.cpp -I$ORACLE_HOME/rdbms/public -I$ORACLE_HOME/rdbms/demo -L$ORACLE_HOME/lib -lclntsh
  </code></pre>
  
  <p>Error is:  </p>
  
  <pre><code>/usr/bin/ld: warning: libnnz10.so, needed by /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so, not found (try using -rpath or -rpath-link)  
  /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nztSetAppDefaultLocation'  
  /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nzos_DisableClientAuthentication'  
  /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nzos_Create_Ctx'  
  /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `_intel_fast_memcpy'  
  /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nzgbllsm_location_shared_memory'  
  /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `__intel_cpu_indicator'  
  /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nzosSCCS_SetCRLCacheSize'  
  ...a whole lot more undefined references...   
  /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so: undefined reference to `nzssGSL_GetSecretLength'  
  collect2: ld returned 1 exit status  
  </code></pre>
  
  <p>Notes on the error:<br>
  When I checked, the <code>libnnz10.so</code> exists when I looked into my <code>$ORACLE_HOME/lib</code> directory.  </p>