Message69361
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 setup.py build --compile=mingw32 install
c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DSQLITE_THREADSAFE=1
-DNDEBUG=1 -DEXPERIMENTAL=1
-DAPSW_USE_SQLITE_AMALGAMATION=\"C:\apsw\sqlite3.c\"
-Ic:\python26\include -Ic:\python26\PC -c apsw.c -o
build\temp.win32-2.6\Release\apsw.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.o
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
EXPORTS
initapsw
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 http://sourceforge.net/forum/forum.php?forum_id=817299 The
libmsvcr90.a is part of MinGW found in c:\MinGW\lib |
|
Date |
User |
Action |
Args |
2008-07-07 00:16:22 | rogerbinns | set | spambayes_score: 0.01635 -> 0.01635 recipients:
+ rogerbinns |
2008-07-07 00:16:21 | rogerbinns | set | spambayes_score: 0.01635 -> 0.01635 messageid: <1215389781.12.0.716617737168.issue3308@psf.upfronthosting.co.za> |
2008-07-07 00:16:19 | rogerbinns | link | issue3308 messages |
2008-07-07 00:16:16 | rogerbinns | create | |
|