compile pycrypto on windows

ralf at brainbot.com ralf at brainbot.com
Tue Feb 10 18:27:59 EST 2004


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
> --
> Haim

-- 
brainbot technologies ag
boppstrasse 64 . 55118 mainz . germany
fon +49 6131 211639-1 . fax +49 6131 211639-2
http://brainbot.com/  mailto:ralf at brainbot.com



More information about the Python-list mailing list