This is not a problem with compiling python extensions, this is a problem linking to the mysqlclient library.
Check out the comments on this page: http://dev.mysql.com/doc/refman/5.1/en/windows-client-compiling.html Unfortunately I can't try anything out for you since I don't have a Windows machine anymore (changed jobs). -Chris On Fri, Dec 08, 2006 at 02:24:58PM -0700, Robert McFadzean wrote: > I have tried a number of the suggestions on getting the minGW32 compiler to > build python extensions, but I still get the same hangup which seems to be > here: > > d:/mysql/lib/opt\mysqlclient.lib(./release/my_thr_init.obj)(.text[_my_thread_glo > bal_init]+0x1e):C:\cygwin\home\mys: variable '_iob' can't be auto-imported. > Plea > se read the documentation for ld's --enable-auto-import for details. > > And I don't know what that means other than that it proceeds with a lot of > warnings, tries something else, and then gives it up. > > Robert G. McFadzean > Instructor > Vermilion School of Agriculture > Lakeland College > 5707 47 Ave West > Vermilion AB T9X 1K5 > Tlf: (780) 853-4890 > Fax: (780) 853-8704 > [EMAIL PROTECTED] > > > -----Original Message----- > From: Chris Lambacher [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 07, 2006 3:14 PM > To: Robert McFadzean > Cc: [email protected] > Subject: Re: [Distutils] Compiler Incompatibility > > > On Wed, Dec 06, 2006 at 11:59:30AM -0700, Robert McFadzean wrote: > > I have been trying to build MySQLdb for python and A. Dustman has come to > > the conclusion that the minGW32 compiler that I am using will not work with > > a Windows ( os is Windows XP) versions of Python and MySQL. Can anyone > > here confirm that he is right. Is there a possible work around? Dustman > > suggested that I would have to compile Python and MySQL with the gcc > > compiler for it to work. > A quick search finds a plethora of resources for how to use mingw to compile > python extentions using the standard Windows Python distribution. > http://www.google.ca/search?q=python+compiler+mingw32&ie=utf-8&oe=utf-8&rls=com.ubuntu:en-US:official&client=firefox-a > > Many of those are out of date and some steps can be skipped and either the > export file is actually shipped with 2.4 and 2.5 or mingw32-gcc just deals > with it interally. I haven't done this in a while, but, I think all you > really need to do at this point is: > > python setup.py build --compiler=mingw32 > python setup.py install > > Note, you can make the '--compiler=mingw32' a default setting by adding > """ > [build] > compiler=mingw32 > """ > to c:\Python2x\Lib\distutils\distutils.cfg, at which point all you have to do > is: > python setup.py install > > I don't know any details particular to building MySQLdb. > > -Chris > > > > > Robert G. McFadzean > > Instructor > > Vermilion School of Agriculture > > Lakeland College > > 5707 47 Ave West > > Vermilion AB T9X 1K5 > > Tlf: (780) 853-4890 > > Fax: (780) 853-8704 > > [EMAIL PROTECTED] > > > > _______________________________________________ > > Distutils-SIG maillist - [email protected] > > http://mail.python.org/mailman/listinfo/distutils-sig _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
