title: ZeroMQ C++ multi-threaded server example runtime error
body: <p>I'm trying to run the ZeroMQ <a href="http://www.zeromq.org/blog%3amultithreaded-server" rel="nofollow">multithreaded C++ server example</a>, which builds fine with</p>
  
  <pre><code>$ g++ server.cpp -lpthread -lzmq -o server -Wall
  </code></pre>
  
  <p>Using OS X 10.6.5, gcc version 4.2.1 (Apple Inc. build 5664), and zeromq2's lastest master branch (Dec 1st). However I'm getting a runtime error immediately after I start the server (with ./server)</p>
  
  <pre><code>terminate called after throwing an instance of 'zmq::error_t'
  what(): Operation not supported by device
  </code></pre>
  
  <p>Is the code provided on the blog no longer current? Or or have I misconfigured? ZMQ seems to be working fine for me otherwise on this machine (simple request/reply socket patterns).</p>