I want to coding program that use libpcap library and run on wrt54g(mipsel architecture).
But when I cross compile source code using mipsel-linux-gcc or mipsel-linux-uclibc-gcc, it generate error follow this.
pcap_send.c:22:18: pcap.h: No such file or directory
pcap_send.c: In function `main':
pcap_send.c:230: error: `pcap_t' undeclared (first use in this function)
pcap_send.c:230: error: (Each undeclared identifier is reported only once
pcap_send.c:230: error: for each function it appears in.)
pcap_send.c:230: error: `handle' undeclared (first use in this function)
pcap_send.c:232: error: `PCAP_ERRBUF_SIZE' undeclared (first use in this function)
I think it cause uclibc don't have libpcap library. But I don't know how to add libpcap library.
someone help me fix this problem please.
Thank you.