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

Raoul Gough RaoulGough at yahoo.co.uk
Thu Oct 23 13:56:24 CEST 2003


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).


D:\CVS\boost\boost\libs\python\test>..\..\..\tools\build\jam_src\
bin.ntx86.msvc\bjam -sTOOLS=vc7.1 -d2 -sBUILD="release" -sVC71_ROOT=
"D:\Program Files\Microsoft Visual Studio .NET 2003\VC7" test
...patience...
...found 3831 targets...
...updating 765 targets...

[snip]

"link"  /nologo /INCREMENTAL:NO  /DLL /subsystem:console
/out:"..\..\..\bin\boost\libs\python\test\test_indexing_const_ext.pyd\
vc7.1\release\test_indexing_const_ext.pyd"
/IMPLIB:"..\..\..\bin\boost\libs\python\test\test_indexing_const_ext.pyd\
vc7.1\release\test_indexing_const_ext.lib"
/LIBPATH:"f:\Python22\libs"
/LIBPATH:"..\..\..\bin\boost\libs\python\build\boost_python.dll\vc7.1\release"
/LIBPATH:"D:\Program Files\Microsoft Visual Studio .NET 2003\VC7\lib"
"python22.lib" "boost_python.lib"
@"..\..\..\bin\boost\libs\python\test\test_indexing_const_ext.pyd
\vc7.1\release\test_indexing_const_ext.CMD"

Creating library ..\..\..\bin\boost\libs\python\test\test_indexing_const_ext.
pyd\vc7.1\release\test_indexing_const_ext.lib and object ..\..\..\bin\boost\
libs\python\test\test_indexing_const_ext.pyd\vc7.1\release\
test_indexing_const_ext.exp
LINK : warning LNK4089: all references to 'dh.o' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'ds00101.o' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'ds00162.o' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'ds00166.o' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'ds00222.o' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'ds00236.o' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'ds00243.o' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'ds00257.o' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'ds00385.o' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'ds00457.o' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'ds00475.o' discarded by /OPT:REF
LINK : warning LNK4089: all references to 'ds00710.o' discarded by /OPT:REF

python-test-target ..\..\..\bin\boost\libs\python\test\
test_indexing_const.test\vc7.1\release\test_indexing_const.test

set PATH="f:\Python22\libs;..\..\..\bin\boost\libs\python\build\
boost_python.dll\vc7.1\release;..\..\..\bin\boost\libs\python\test\
test_indexing_const_ext.pyd\vc7.1\release;";%PATH%

    set PYTHONPATH=f:\Python22\libs;..\..\..\bin\boost\libs\python\
build\boost_python.dll\vc7.1\release;..\..\..\bin\boost\libs\python\
test\test_indexing_const_ext.pyd\vc7.1\release;..\..\..\libs\python\test;;

     "f:/Python22\python.exe"   "test_indexing_const.py"

running...
*****************************************************************
Failure in example: from test_indexing_const_ext import *
from line #0 of __main__
Exception raised:
Traceback (most recent call last):
  File "f:\Python22\lib\doctest.py", line 430, in _run_examples_inner
    compileflags, 1) in globs
  File "<string>", line 1, in ?
ImportError: DLL load failed: Invalid access to memory location.

-- 
Raoul Gough.
(setq dabbrev-case-fold-search nil)





More information about the Cplusplus-sig mailing list