title: Building 32-bit Qt Mysql plugin fails with MinGw
body: <p>I'm building a MySQL plugin for Qt 4.4.3 Open Source Edition (<a href="http://doc.trolltech.com/4.4/sql-driver.html#building-the-plugins-manually" rel="nofollow noreferrer">Qt documentation</a>), and using command:</p>
  
  <pre><code>cd %QTDIR%\src\plugins\sqldrivers\mysql
  qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server &lt;version&gt;\lib\opt\libmysql.lib" mysql.pro
  make
  </code></pre>
  
  <p>I manage to build it to my 64-bit Qt just fine using 64-bit MySQL dev files (using nmake). However, 32-bit build (with mingw-make) fails with linking problems:</p>
  
  <pre><code>Creating library file: c:\Coding\Qt\4.4.3\plugins\sqldrivers\libqsqlmysqld4.a
  tmp/obj/debug_shared/qsql_mysql.o(.text+0x10d): In function `Z5codecP8st_mysql':
  ...lots of same stuff...
  </code></pre>
  
  <p>The dev files installed by MySQL 5.1 32-bit and 64-bit library are also different: the 64-bit includes libmysql.dll and six .lib files, while 32-bit includes those <strong>plus</strong> six .pdb files. Relevant to this issue?</p>
  
  <p>Is anyone able to build the 32-bit plugin with Qt 4.4.3/MinGW using MySQL 5.1? Suggestions?</p>