compile pycrypto on windows

Haim Ashkenazi haim at babysnakes.org
Tue Feb 10 19:46:30 EST 2004


ralf at brainbot.com wrote:

> Haim Ashkenazi <haim at babysnakes.org> writes:
> 
>> Hi
>>
>> I'm trying to compile pycrypto on windows. I've installed mingw and try
>> to run the command 'python setup.py build -c mingw32 install' and I get
>> this error:
>>
>> $ python setup.py build -c mingw32 install
>> running build
>> running build_py
> [snip]
>> c:\mingw\bin\gcc.exe -mno-cygwin -shared -s
>> build\temp.win32-2.3\Release\sr \md2/o
>> build\temp.win32-2.3\Release\src\MD2.def -Lc:\Python23\libs -Lc
>> \Python23\PCBuild -lpython23 -o build\lib.win32-2.3\Crypto\Hash\MD2.pyd
>> build\temp.win32-2.3\Release\src\md2.o(.text+0x3e3):MD2.c: undefined
>> reference to `_imp___Py_NoneStruct'
>> build\temp.win32-2.3\Release\src\md2.o(.text+0x3eb):MD2.c: undefined
>> reference to `_imp___Py_NoneStruct'
>> build\temp.win32-2.3\Release\src\md2.o(.text+0x53c):MD2.c: undefined
>> reference to `_imp__PyType_Type' ---
>>
>> can someone please help?
> 
> Did you create libpythonXX.a ?
> http://sebsauvage.net/python/mingw.html describes how to do that.
thanx, that solved it.

Bye
--
Haim





More information about the Python-list mailing list