[zeromq-dev] CZMQ on Windows 10
Luca Boccassi
luca.boccassi at gmail.com
Sat Oct 7 18:44:33 CEST 2017
On Sat, 2017-10-07 at 16:39 +0000, Stephen Gray wrote:
> I've just built CZMQ on Windows 10 which was not straight-forward;
> the CZMQ readme file instructs;
>
> git clone git://github.com/zeromq/czmq.git
> cd czmq\builds\msvc
> configure.bat
> cd build
> buildall.bat
> cd ..\..\..\..
>
> but there is no 'build' folder to 'cd build' into and I can't find
> buildall.bat. Anyhow I opened the supplied Visual Studio 2015
> solution and built a few configurations that way. czmq_selftest was
> not found, so instead I tried a little test program<http://czmq.zerom
> q.org/>:
it's builds\msvc
> #include <czmq.h>
> int main (void)
> {
> zsock_t *push = zsock_new_push ("inproc://example");
> zsock_t *pull = zsock_new_pull ("inproc://example");
> zstr_send (push, "Hello, World");
>
> char *string = zstr_recv (pull);
> puts (string);
> zstr_free (&string);
>
> zsock_destroy (&pull);
> zsock_destroy (&push);
> return 0;
> }
>
> This compiled but when it runs it crashes with the output;
>
> Hello, World
> Assertion failed: Successful WSASTARTUP not yet performed
> (..\..\..\..\src\signaler.cpp:192)
>
> Not a great start; anyone know what might be wrong here and please
> could the command line instructions to build CZMQ on Windows be
> corrected in the readme?
>
> Would really love to get to work with CZMQ on Windows ;-)
Run zsys_shutdown() before exiting the program
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20171007/fbcc6190/attachment.sig>
More information about the zeromq-dev
mailing list