structures timer and network not found in linux (ubuntu)

5 views
Skip to first unread message

Saurabh Bansal

unread,
Sep 1, 2016, 7:05:15 AM9/1/16
to MQTT
Hello Geeks,
I have to write a MQTT application using a library. In the library, there are 2 structures 'timer' and 'network'.
i tried to use '<sys/time.h>' as the header file for structure 'timer' and '<sys/socket.h>' for structure 'network'. but i was not able to compile the program because defination for these structures not found.
can anyone please help me which header i should use for these structure if somebody has used.

Paul Fremantle

unread,
Sep 1, 2016, 7:42:58 AM9/1/16
to mq...@googlegroups.com
We don't know which MQTT library you are using, so its hard to help you. 

However those sys/time.h and sys/socket.h are part of the Posix core which most Linux systems have as standard. Maybe you haven't installed your basic Linux development kit (e.g. apt-get install base-devel on Ubuntu). 

Paul


--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+unsubscribe@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.



--
Paul Fremantle
Part-time PhD student - School of Computing
twitter: pzfreo / skype: paulfremantle / blog: http://pzf.fremantle.org
Co-Founder, WSO2
Apache Member and Committer
07740 199 729
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages