title: how to compile pymqe.c for Python3?
body: <p>I managed to process module <code>pymqe.c</code> into <code>pymqe.pyd</code> for Python2 using VC 2017 compiler and my own make file. Unfortunately, it doesn’t work for Python3. If I try compile module <code>pymqe.c</code> from <code>pymqi-1.9.3.tar.gz</code> in the same way, the linking step fails with the error message:</p>
  
  <blockquote>
  <pre><code>LINK : error LNK2001: unresolved external symbol initpymq
  
  pymqe.lib : fatal error LNK1120: 1 unresolved externals
  </code></pre>
  </blockquote>
  
  <p>My make file contains the following instruction to link pymqe.c with the resulting library <code>pymqe.pyd</code>:</p>
  
  <pre><code>/EXPORT:initpymqe pymqe.obj
  </code></pre>
  
  <p>I assume, the function initpymqe is excluded during compilation for Python3 due to pre-compiler instruction in the source code of the module <code>pymqe.c</code>:</p>
  
  <pre><code>#if PY_MAJOR_VERSION==2
  
         void initpymqe(void) {
         …
  #else
  </code></pre>
  
  <p>Does anyone know, how to handle this problem? </p>