Got it! (Re: Almost got it)
Michiel Jan Laurens de Hoon
mdehoon at ims.u-tokyo.ac.jp
Tue Jul 23 03:44:46 EDT 2002
I found the special trick needed to make this work. What I needed to do
was to add c:\winnt\system32\python22.dll explicitly to the list of
object files. I guess the -lpython22 is supposed to find python22.dll
instead of python22.lib, but the latter gets used because of the
-L c:\python22\libs.
My Windows installer works now.
Thanks again
--Michiel.
C:\cygwin\home\mdehoon\Software\Cluster>c:\cygwin\usr\local\bin\gcc.exe
-mno-cygwin -mdll -static --entry _DllMain at 12 -s build\temp.win32-2.2\Release\cluster.o
build\temp.win32-2.2\Release\clustermodule.o
build\temp.win32-2.2\Release\ranlib.o
build\temp.win32-2.2\Release\com.o build\temp.win32-2.2\Release\linpack.o
build\temp.win32-2.2\Release\cluster.def -Lc:\python22\libs -lpython22
-o build\lib.win32-2.2\Pycluster\cluster.pyd -s
c:\winnt\system32\python22.dll
C:\cygwin\home\mdehoon\Software\Cluster>
More information about the Python-list
mailing list