[python-win32] Why can I compile a C extension if I replace python25.lib with python25.dll?

2009-08-07 Thread Jason Baker
I've been trying to get Storm's C extensions to compile under windows. For some reason, it wasn't able to find python25.dll, even if I paste it directly under libs or DLLs. My theory was that it was finding python25.lib (which I'm guessing is a static library) and trying to use that instead. If

Re: [python-win32] Why can I compile a C extension if I replace python25.lib with python25.dll?

2009-08-07 Thread Tim Roberts
Jason Baker wrote: I've been trying to get Storm's C extensions to compile under windows. For some reason, it wasn't able to find python25.dll, even if I paste it directly under libs or DLLs. My theory was that it was finding python25.lib (which I'm guessing is a static library) and trying

Re: [python-win32] Why can I compile a C extension if I replace python25.lib with python25.dll?

2009-08-07 Thread Jason Baker
On Fri, Aug 7, 2009 at 11:40 AM, Tim Robertst...@probo.com wrote: Jason Baker wrote: I've been trying to get Storm's C extensions to compile under windows.  For some reason, it wasn't able to find python25.dll, even if I paste it directly under libs or DLLs.  My theory was that it was finding

Re: [python-win32] Why can I compile a C extension if I replace python25.lib with python25.dll?

2009-08-07 Thread Tim Roberts
Jason Baker wrote: Nope. I get linker errors saying it cant find a whole slew of symbols from the Python library. I haven't been able to figure out any other way to get it to work without replacing python25.lib with python25.dll (from C:\WINDOWS\SYSTEM32). If it makes any difference, I'm

Re: [python-win32] Why can I compile a C extension if I replace python25.lib with python25.dll?

2009-08-07 Thread David Robinow
On Fri, Aug 7, 2009 at 1:19 PM, Tim Robertst...@probo.com wrote: Jason Baker wrote: Nope.  I get linker errors saying it cant find a whole slew of symbols from the Python library.  I haven't been able to figure out any other way to get it to work without replacing python25.lib with

Re: [python-win32] Why can I compile a C extension if I replace python25.lib with python25.dll?

2009-08-07 Thread Gerdus van Zyl
See this page: http://eli.thegreenplace.net/2008/06/28/compiling-python-extensions-with-distutils-and-mingw/ it has helped me with something similar and tells how to make a mingw compatable libpython25.a; In newer mingw version I think it can figure out the exports (the .a) from the dll itself.

Re: [python-win32] Why can I compile a C extension if I replace python25.lib with python25.dll?

2009-08-07 Thread Michael Torrie
Tim Roberts wrote: It makes a HUGE difference. The gcc compiler in MinGW doesn't understand the Microsoft library format. If you want to build extensions with MinGW, then you must build your Python from source, using MinGW. You can't use a standard distribution. (Well, you could use the

Re: [python-win32] Why can I compile a C extension if I replace python25.lib with python25.dll?

2009-08-07 Thread Waldemar Osuch
On Fri, Aug 7, 2009 at 11:19 AM, Tim Robertst...@probo.com wrote: Jason Baker wrote: Nope.  I get linker errors saying it cant find a whole slew of symbols from the Python library.  I haven't been able to figure out any other way to get it to work without replacing python25.lib with