Author rogerbinns
Recipients rogerbinns
Date 2008-07-07.00:16:12
SpamBayes Score 0.01635
Marked as misclassified No
Message-id <>
My extension (apsw) builds and runs just fine on Linux, Mac and Windows
for Python 2.3, 2.4 and 2.5.  For Linux and Mac Python 2.6 beta 1 and
Python 3.0 beta 1 also work just fine.  However on Windows using MinGW
and Python 2.6 beta 1 and Python 3.0 beta 1 the pyd fails to load
claiming the "specified procedure cannot be found".  The compile/link is
just fine and pexports shows the procedure is present.  

# Compile lines
c:/python26/python build --compile=mingw32 install
c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DSQLITE_THREADSAFE=1
-Ic:\python26\include -Ic:\python26\PC -c apsw.c -o
writing build\temp.win32-2.6\Release\apsw.def
c:\mingw\bin\gcc.exe -mno-cygwin -shared -s
build\temp.win32-2.6\Release\apsw.def -Lc:\python26\libs
-Lc:\python26\PCbuild -lpython26 -lmsvcr90 -o build\lib.win32-2.6\apsw.pyd
# Running
ImportError: DLL load failed: The specified procedure could not be found.
# Pexports
C:\apsw>pexports build\lib.win32-2.6\apsw.pyd
LIBRARY apsw.pyd

When using Python 3.0 things are substantially the same except the init
function is PyInit_apsw.

MinGW was installed using the default configuration with the automated
installer  The
libmsvcr90.a is part of MinGW found in c:\MinGW\lib
Date User Action Args
2008-07-07 00:16:22rogerbinnssetspambayes_score: 0.01635 -> 0.01635
recipients: + rogerbinns
2008-07-07 00:16:21rogerbinnssetspambayes_score: 0.01635 -> 0.01635
messageid: <>
2008-07-07 00:16:19rogerbinnslinkissue3308 messages
2008-07-07 00:16:16rogerbinnscreate