Hi Dave, CZMQ uses uint for array indices; equivalent to unsigned int, but more convenient in code. We define it in czmq_prelude.h on systems that do not define it by default.
So you're compiling on a system that does not define uint. Could you take a look at czmq_prelude.h around line 420, and see if you can add the necessary code for your compiler/OS? If you get that working, a pull request with the patch would be very welcome. -Pieter On Wed, Mar 26, 2014 at 10:31 PM, David Cheney <[email protected]> wrote: > I've downloaded, built, and installed the czmq from > http://download.zeromq.org/czmq-2.1.0.tar.gz > > When I attempt to use it I encounter this error: > In file included from /usr/local/include/czmq.h:68, from src/tcp_ping.c:8: > /usr/local/include/zrex.h:78: error: expected declaration specifiers or > '...' before 'uint' > scons: *** [obj/Debug/tcp_ping.o] Error 1 > scons: building terminated because of errors. > > /usr/local/include/zrex.h:78 makes use of uint, which apparently is > undefined? Using "unsigned" fixed the problem for me. > > Let me know if you'd like this posted at the issue tracker. > > Dave > > > On Mon, Mar 24, 2014 at 10:21 PM, Joe Lin <[email protected]> wrote: >> >> Hi, >> >> Got a question regarding this function >> >> int zmq_recv (void *socket, void *buf, size_t len, int flags); >> >> According to the instruction: >> >> 'The zmq_recv() function shall receive a message from the socket >> referenced by thesocket argument and store it in the buffer referenced by >> the buf argument. Any bytes exceeding the length specified by the len >> argument shall be truncated' >> >> I would call this function several time in a row for a multi-frame >> message. My question is that if a frame exceeds the specified 'len' >> argument, do I get the data for the next frame or do I get the remaining >> data of the current frame? >> >> _______________________________________________ >> zeromq-dev mailing list >> [email protected] >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
