[C++-sig] Confused about placement of libboost_python.dll

Paul Magwene paul.magwene at yale.edu
Tue Nov 4 21:46:58 CET 2003

Howdy folks,

I'm confused about where libboost_python.dll should be placed on either 
a MSVC or cygwin build under windows.

 From messages like this:


I understand that lib_boostpython is NOT a python module. OK - so under 
cygwin I put it in "/usr/local/lib" and change my shell profile to include:


After resourcing my profile a quick check with "env" confirms this is set.

After doing this I'm still unable to properly import a boost built 
python module.  I get the following message:

Python 2.3.2 (#1, Oct  9 2003, 12:03:29)
[GCC 3.3.1 (cygming special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import hello
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: dlopen: Win32 error 126

However, if I copy libboost_python.dll into the same directory that 
"hello.dll" lives in then I'm able to import the extension just fine.

I'm obviously missing something here.  Can anybody point me in the right 
direction?  Also, what's the equivalent of LD_LIBRARY_PATH for Windows?


More information about the Cplusplus-sig mailing list