title: Unable to build pymqi on window - errors compiling
body: <p>I am trying to build and install pymqi, but I am getting a lot of errors trying to compile it.</p>
  
  <p>I have done the following:</p>
  
  <p>Get and install MinGW gcc</p>
  
  <p>Create libpython2?.a</p>
  
  <p>Using instruction from: <a href="https://pythonhosted.org/pymqi/mingw32.html" rel="nofollow">https://pythonhosted.org/pymqi/mingw32.html</a></p>
  
  <p>When I try to build it using: <code>setup.py build -cmingw32 client</code>
  I get a list of undefined references. Below are some examples</p>
  
  <pre><code>build\temp.win32-2.6\Release\pymqe.o:pymqe.c:(.text+0x25e): undefined  reference to `MQINQMP'
  build\temp.win32-2.6\Release\pymqe.o:pymqe.c:(.text+0x463): undefined reference to `MQSETMP'
  </code></pre>
  
  <p>At the very end, I also get the following error:</p>
  
  <pre><code>c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: build\temp
  .win32-2.6\Release\pymqe.o: bad reloc address 0x0 in section `.data'
  collect2.exe: error: ld returned 1 exit status
  error: command 'gcc' failed with exit status 1
  </code></pre>
  
  <p>I am using:</p>
  
  <ul>
  <li>Python 26</li>
  <li>gcc version 4.8.1 (GCC)</li>
  </ul>
  
  <p>Any clues and help will be very much appreciated :)</p>