[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 tryin

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 Roberts 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 >> pytho

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

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 Roberts 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 python25.dll >> (fr

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 t

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 Roberts 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 python25.dll >>

[python-win32] help passing a buffer to an ActiveX object via win32com

2009-08-07 Thread Orest Kozyar
I'm trying to use an ActiveX object to read data from hardware. Certain methods do not appear to work, specifically ones that expect a pointer to an array of 32-bit floats as one of the variables. One method is *ReadTag*. The C prototype is *long ReadTag(LPCTSTR name, float* pBuf, long nOS, long

Re: [python-win32] help passing a buffer to an ActiveX object via win32com

2009-08-07 Thread Tim Roberts
Orest Kozyar wrote: > I'm trying to use an ActiveX object to read data from hardware. > Certain methods do not appear to work, specifically ones that expect a > pointer to an array of 32-bit floats as one of the variables. One > method is /ReadTag/. > > The C prototype is > /long ReadTag(LPCTSTR