title: ctypes loading a c shared library that has dependencies
body: <p>On Linux, I have a c shared library that depends on other libs. LD_LIBRARY_PATH is properly set to allow the linker to load all the libraries. When I do:</p>
  
  <pre><code>libgidcwf    = ctypes.cdll.LoadLibrary(libidcwf_path)
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "libwfm_test.py", line 12, in &lt;module&gt;
      libgidcwf    = ctypes.cdll.LoadLibrary(libidcwf_path)
    File "/usr/lib/python2.5/ctypes/__init__.py", line 431, in LoadLibrary
      return self._dlltype(name)
    File "/usr/lib/python2.5/ctypes/__init__.py", line 348, in __init__
      self._handle = _dlopen(self._name, mode)
  OSError: path-to-my-lib/libwav.so: undefined symbol: ODBCGeneralQuery
  </code></pre>
  
  <p>It seems that LD_LIBRARY_PATH has no effect here. 
  Is there a way to have these dependency library "loadable" ?</p>
  
  <p>Thanks in advance for the help.</p>