[zeromq-dev] Trouble compiling czmq under Visual Studio

Tom Quarendon tom.quarendon at teamwpc.co.uk
Fri Sep 12 18:29:35 CEST 2014


Ø  MSVC 2013 supports most of C99, its not so important any more.

As provided, the Visual Studio 2013 projects have the same error. If you change the project to say “compile as C” rather than “compile as C++”, the error goes away. Perhaps the Visual Studio projects need altering.

However. My point was partly that it looked like a coding error. As far as I understand it, something is being passed to zsock_type_str that potentially isn’t a zsock_t*, so the code would go wrong if you passed in a libzmq void* socket pointer instead of a zsock_t*. If this is the case, then I think that the code ought to be fixed. It’s probably a minor issue as the code is about to assert and terminate anyway, but even so, it looks like an error.



From: zeromq-dev-bounces at lists.zeromq.org [mailto:zeromq-dev-bounces at lists.zeromq.org] On Behalf Of Steven McCoy
Sent: 12 September 2014 17:18
To: ZeroMQ development list
Subject: Re: [zeromq-dev] Trouble compiling czmq under Visual Studio

On 12 September 2014 11:12, Tom Quarendon <tom.quarendon at teamwpc.co.uk<mailto:tom.quarendon at teamwpc.co.uk>> wrote:
Since Visual Studio doesn’t support C99, the C source files are compiled as C++. This appears to have thrown up a type issue.


MSVC 2013 supports most of C99, its not so important any more.

--
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140912/999b6998/attachment.htm>


More information about the zeromq-dev mailing list