[zeromq-dev] SWAP functionality now in trunk

Martin Sustrik sustrik at 250bpm.com
Sat Jun 26 20:19:21 CEST 2010


Hi Pieter,

> We've ported the SWAP functionality to 0MQ/2.0 trunk.  This was
> documented in zmq_setsockopt(3) but not implemented.
> 
> Now it works.  There may be issues, do feel free to report them here
> or on the github issue tracker :-)

I've tried to build it on Win32. I've added missing files into MSVC 
project, then added missing include into msg_store.cpp. (I've committed 
these changes.)

Th build still produces errors:

1>------ Build started: Project: libzmq, Configuration: Debug Win32 ------
1>Performing Pre-Build Event...
1>        1 file(s) copied.
1>Compiling...
1>msg_store.cpp
1>c:\zeromq2\src\msg_store.cpp(104) : warning C4996: '_open': This
function or variable may be unsafe. Consider using _sopen_s instead. To
disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for
details.
1>        c:\program files\microsoft visual studio
9.0\vc\include\io.h(244) : see declaration of '_open'
1>c:\zeromq2\src\msg_store.cpp(203) : error C2589: '(' : illegal
token on right side of '::'
1>c:\zeromq2\src\msg_store.cpp(203) : error C2059: syntax error :
'::'
1>c:\zeromq2\src\msg_store.cpp(203) : error C2589: '(' : illegal
token on right side of '::'
1>c:\zeromq2\src\msg_store.cpp(203) : error C2589: '(' : illegal
token on right side of '::'
1>c:\zeromq2\src\msg_store.cpp(227) : error C2589: '(' : illegal
token on right side of '::'
1>c:\zeromq2\src\msg_store.cpp(227) : error C2059: syntax error :
'::'
1>c:\zeromq2\src\msg_store.cpp(227) : error C2589: '(' : illegal
token on right side of '::'
1>c:\zeromq2\src\msg_store.cpp(227) : error C2589: '(' : illegal
token on right side of '::'
1>c:\zeromq2\src\msg_store.cpp(260) : error C2589: '(' : illegal
token on right side of '::'
1>c:\zeromq2\src\msg_store.cpp(260) : error C2059: syntax error :
'::'
1>c:\zeromq2\src\msg_store.cpp(286) : error C2589: '(' : illegal
token on right side of '::'
1>c:\zeromq2\src\msg_store.cpp(286) : error C2059: syntax error :
'::'
1>Build log was saved at
"file://c:\zeromq2\builds\msvc\libzmq\Debug\BuildLog.htm"
1>libzmq - 12 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========

Martin



More information about the zeromq-dev mailing list