From: Anthony T. <an...@co...> - 2003-08-19 00:54:27
|
What precise error do you get? I'll have to try this myself since I use Python and Mingw32 a lot. I haven't had any difficulty with gcc 3.2 and the binutils from a few months ago. I haven't yet tried the release candidate but I guess I'll try that tomorrow and see if I get the same results. In the meantime, be aware that you don't need to create the import library anymore. You can simply link directly to the DLL which is very convenient. Thus, you can do the following: gcc -o myext.pyd myext.o c:\windows\system32\python23.dll The DLL location may vary from machine to machine and can be determined with the following snippet of Python code: import win32api import sys dllName = win32api.GetModuleFileName(sys.dllhandle) On Mon, 2003-08-18 at 18:03, Jon V wrote: > Good day to all. > > > I feel I should inform the Mingw team that since upgrading from > MinGW-2.0.0-3 to MinGW-3.0.0-rc4 that I have had trouble getting the "pyd" > files (what are effectively Python's dll's) which are compiled by gcc loaded > into Python. The file is created, but Python cannot load it. I am speaking > from a position of outright ignorance of this matter: could it be a dll > entry point problem? I truly don't know. > > After much wrestling with this, I have since un-installed MinGW-3.0.0-rc4 > and re-installed MinGW-2.0.0-3, and my extensions compiled again and were > loaded into Python successfuly. I also noticed that the file created under > the new Mingw was around 10KB, but that it is 17KB (7KB more) under > MinGW-2.0.0-3. > > In case you are wondering, I re-created the "libpython21.a" file from > "Python21.dll" when I upgraded to the MinGW-RC, but that didn't help. I have > re-created the library again to use in the old Mingw and it is working fine > now. > > My system: > > -Win98 > -ActiveState Python 2.1.1 > -SWIG 1.3.19 > -Msys 1.0.9 (Not used in the compilation problem mentioned above). > > > Best regards > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users -- Anthony Tuininga <an...@co...> |