1
我試圖運行ZeroMQ multithreaded C++ server example,它建立罰款ZeroMQ C++多線程服務器實例運行時錯誤
$ g++ server.cpp -lpthread -lzmq -o server -Wall
使用OS X 10.6.5,gcc版本4.2.1(蘋果公司建立5664)和zeromq2的最新主分支(12月1日)。但是我得到一個運行時錯誤後,我開始在服務器(帶./server)
terminate called after throwing an instance of 'zmq::error_t'
what(): Operation not supported by device
設在博客不再是當前的代碼?或者我錯了配置? ZMQ似乎對我來說正常工作,否則在這臺機器上(簡單的請求/回覆套接字模式)。
你的主機文件是什麼樣的?在最近的一些Linux發行版中,我看到主機文件沒有localhost的條目,而是有一個localhost-localdomain條目。因此localhost不能解析。 – stonemetal 2010-12-03 15:21:40