[zeromq-dev] what do I do bad with zmq_threadstart ?

Mikko Koppanen mikko.koppanen at gmail.com
Tue Oct 22 19:07:13 CEST 2013


On Wed, Oct 23, 2013 at 12:29 AM, Laurent Alebarde <l.alebarde at free.fr>wrote:

>  Hi Devs,
>
> I am trying to use zmq_threadstart. My first test passing ctx as args
> works, but I need now to pass two arguments. So I tried many ways and all
> the time it ends with a compilor insult :
>
> error: invalid conversion from 'void (*)(void**)' to 'void (*)(void*)'
> [-fpermissive]
> In file included from ../tests/testutil.hpp:24:0,
>                  from ../tests/test_concurrency_parano.cpp:20:
> ../tests/../include/zmq_utils.h:94:18: error:   initializing argument 1 of
> 'void* zmq_threadstart(void (*)(void*), void*)' [-fpermissive]
> make: *** [tests/test_concurrency_parano.o] Error 1
>
>

Hi,

looking at the compiler output: is client_task defined as client_task (void
**) ? The parameter should be void *.

-- Mikko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131023/d7e65f11/attachment.htm>


More information about the zeromq-dev mailing list