[zeromq-dev] How to compile a C or C++ program written using ZMQ
Nadav Samet
thesamet at gmail.com
Wed Jun 20 19:30:21 CEST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120620/37a02e27/attachment.htm>
More information about the zeromq-dev
mailing list