title: ZeroMQ on Windows
body: <p>How am I supposed to install ZeroMQ on Windows7 (x64) using MinGW.
  I am not a native speaker and their guide <a href="http://zeromq.org/docs:windows-installations" rel="nofollow">here</a> is unclear as well as I downloaded both, Windows Sources and Windows Installer that contains (bin/lib - the compiled sources).</p>
  
  <ul>
  <li>I added the bin folder in PATH.</li>
  <li>I linked all the libraries.</li>
  <li>I linked the include folder</li>
  </ul>
  
  <p>If I append <code>-lzmq</code> to the linker's additional options I get "cannot find -lzmq".
  Otherwise I have undefined references to everything.
  Trying to compile:</p>
  
  <pre><code>#include &lt;zmq.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;unistd.h&gt;
  #include &lt;string.h&gt;
  #include &lt;assert.h&gt;
  
  int main (void)
  {
      //  Socket to talk to clients
      void *context = zmq_ctx_new ();
      void *responder = zmq_socket (context, ZMQ_REP);
      int rc = zmq_bind (responder, "tcp://*:5555");
      assert (rc == 0);
  
      while (1) {
          char buffer [10];
          zmq_recv (responder, buffer, 10, 0);
          printf ("Received Hello\n");
          sleep (1);          //  Do some 'work'
          zmq_send (responder, "World", 5, 0);
      }
      return 0;
  }
  </code></pre>
  
  <hr>