[C++-sig] Re: Extension DLLs nonfunctioning with MSVC 7.1 (beta)

David Abrahams dave at boost-consulting.com
Thu Oct 23 15:39:42 CEST 2003


Raoul Gough <RaoulGough at yahoo.co.uk> writes:

> When I build the Python tests with MSVC (7.1 beta, version 13.10.2292)
> I get non-functioning DLLs. With a debug build, importing an extension
> module into Python aborts silently, and with the release builds it
> reports "ImportError: DLL load failed: Invalid access to memory
> location." I'm reasonably sure this was working a couple of weeks ago.
>
> I can report more details if necessary, but maybe somebody already has
> experience with this happening? A sample link and test run follows
> (lines manually wrapped). I'm using the indexing_v2 branch in
> boost/python/suite/indexing and libs/python, and the CVS head
> everywhere else. The problem occurs with the new indexing tests and
> the existing tests I've tried as well (e.g. crossmod_exception.py).


It's working for me with vc7.1 release and a debug-python build:

cd c:/boost/libs/python/test/
myjam -sTOOLS=vc7.1 -sBUILD=debug-python test
...patience...
...found 3623 targets...
...updating 304 targets...
...
vc-Link c:\build\bin\boost\libs\python\test\embedding.test\vc7.1\debug-python\embedding.exe
   Creating library c:\build\bin\boost\libs\python\test\embedding.test\vc7.1\debug-python\embedding.lib and object c:\build\bin\boost\libs\python\test\embedding.test\vc7.1\debug-python\embedding.exp
execute-test c:\build\bin\boost\libs\python\test\embedding.test\vc7.1\debug-python\embedding.run
        1 file(s) copied.
**passed** c:\build\bin\boost\libs\python\test\embedding.test\vc7.1\debug-python\embedding.test
vc-C++ c:\build\bin\boost\libs\python\test\crossmod_exception_a.pyd\vc7.1\debug-python\crossmod_exception_a.obj
crossmod_exception_a.cpp
vc-Link c:\build\bin\boost\libs\python\test\crossmod_exception_a.pyd\vc7.1\debug-python\crossmod_exception_a_d.pyd c:\build\bin\boost\libs\python\test\crossmod_exception_a.pyd\vc7.1\debug-python\crossmod_exception_a.lib
   Creating library c:\build\bin\boost\libs\python\test\crossmod_exception_a.pyd\vc7.1\debug-python\crossmod_exception_a.lib and object c:\build\bin\boost\libs\python\test\crossmod_exception_a.pyd\vc7.1\debug-python\crossmod_exception_a.exp
vc-C++ c:\build\bin\boost\libs\python\test\crossmod_exception_b.pyd\vc7.1\debug-python\crossmod_exception_b.obj
crossmod_exception_b.cpp
vc-Link c:\build\bin\boost\libs\python\test\crossmod_exception_b.pyd\vc7.1\debug-python\crossmod_exception_b_d.pyd c:\build\bin\boost\libs\python\test\crossmod_exception_b.pyd\vc7.1\debug-python\crossmod_exception_b.lib
   Creating library c:\build\bin\boost\libs\python\test\crossmod_exception_b.pyd\vc7.1\debug-python\crossmod_exception_b.lib and object c:\build\bin\boost\libs\python\test\crossmod_exception_b.pyd\vc7.1\debug-python\crossmod_exception_b.exp
python-test-target c:\build\bin\boost\libs\python\test\crossmod_exception.test\vc7.1\debug-python\crossmod_exception.test
running...
Done.
[5420 refs]
...

I'm testing the release build now, but I expect similar results.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list