[zeromq-dev] How to compile a C or C++ program written using ZMQ

Diffuser78 diffuser78 at gmail.com
Wed Jun 20 19:46:26 CEST 2012


-lzmq helped.

Thanks.

On Wed, Jun 20, 2012 at 10:35 AM, Apostolis Xekoukoulotakis <
xekoukou at gmail.com> wrote:

> maybe pass -lzmq before clienttest
>
>
> 2012/6/20 Nadav Samet <thesamet at gmail.com>
>
>> Interesting. What version of ZeroMQ are you using and on what OS? How did
>> you get ZeroMQ installed? Are you sure you passed -lzmq to gcc when you got
>> this error?
>>
>>
>> On Wed, Jun 20, 2012 at 10:24 AM, Diffuser78 <diffuser78 at gmail.com>wrote:
>>
>>> It says the following:
>>>
>>> "undefined reference to `zmq_msg_init'"
>>> "undefined reference to `zmq_recv'"
>>> "undefined reference to `zmq_getsockopt'"
>>>
>>> --Darshan
>>>
>>>
>>> On Wed, Jun 20, 2012 at 10:09 AM, Nadav Samet <thesamet at gmail.com>wrote:
>>>
>>>> Can you explain "does not work"? Are you getting any output from gcc?
>>>>
>>>> On Wed, Jun 20, 2012 at 9:48 AM, Diffuser78 <diffuser78 at gmail.com>wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am a newbie so pardon my ignorance. I wrote very simple client and
>>>>> server program using zmq by looking the guide.
>>>>>
>>>>> There are no instructions to compile and run the same. I have tried
>>>>> the following, but it does not work. I downloaded the tar ball, built it
>>>>> using the instructions given on the website. Please help. I want to run a
>>>>> simple Hello World program using zmq.
>>>>>
>>>>> gcc -Wall clienttest.c -lzmq
>>>>>
>>>>>
>>>>> Thanks.
>>>>>
>>>>> _______________________________________________
>>>>> zeromq-dev mailing list
>>>>> zeromq-dev at lists.zeromq.org
>>>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> -Nadav
>>>>
>>>>
>>>> _______________________________________________
>>>> zeromq-dev mailing list
>>>> zeromq-dev at lists.zeromq.org
>>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>>
>>>>
>>>
>>> _______________________________________________
>>> zeromq-dev mailing list
>>> zeromq-dev at lists.zeromq.org
>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>
>>>
>>
>>
>> --
>> -Nadav
>>
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>>
>
>
> --
>
>
> Sincerely yours,
>
>      Apostolis Xekoukoulotakis
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120620/4e63c652/attachment.htm>


More information about the zeromq-dev mailing list