Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I import ares.h file on mosquitto protocol?

Tags:

mosquitto

srv

I've implemented mosquitto on my ARM target board.

I added -DWITH_SRV in Makefile, because I need to add SRV Loopup function on my system.

But it returns error

fatal error: ares.h: No such file or directory

I have no idea how can I fix it.

  1. Just add ares.h file in /include folder? If then, loop up feature will be work normally?

  2. Should install ares library on my system?

Could anyone answer about my question?

like image 731
Sanggil Lee Avatar asked Oct 14 '25 10:10

Sanggil Lee


1 Answers

You need to have the c-ares library installed in your system. It should be pretty straightforward to install the libc-ares-dev package using your Linux distro package manager.

Alternatively, and for other operating sytems, you can get the library from its official website.

like image 136
kartben Avatar answered Oct 18 '25 02:10

kartben



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!