Problems installing calldll

rhys tucker rhystucker at rhystucker.fsnet.co.uk
Thu Jul 26 10:41:43 EDT 2001


Suggestions please for the errors I'm getting installing the calldll module to Windows2000 with python 2.1 located at c:\Python21. Python21 and gcc are included in the PATH variable. 

calldll's compile.bat reads 

gcc -I../Include -O2 -c calldllmodule.c -o calldllmodule.o
dllwrap --dllname calldll.pyd --driver-name gcc --def calldll.def -o calldll.pyd calldllmodule.o -s --entry _DllMain at 12 --target=i386-mingw32 -L.. -lpython21 

but produces this 

In file included from ../Include/Python.h:54,
                 from calldllmodule.c:62:
./Include/pyport.h:422: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: cannot find -lpython21
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1 

I've even tried -lPython21 

thanks 

rhys




More information about the Python-list mailing list