[PLUG] Problem using 'libpcap'

Kaustubh Gadkari kaustubh.gadkari at gmail.com
Fri Feb 23 23:15:06 IST 2007


<snip>
On 2/23/07, Ashutosh Adkar <ashu.adkar at gmail.com> wrote:
> I tried writing a compiling a small program that uses the libpcap
> library.But I got the following errors on compiling
>
> ldev.c:12:52: error: linux/pcap.h: No such file or directory
> ldev.c: In function 'main':
> ldev.c:24: error: 'PCAP_ERRBUF_SIZE' undeclared (first use in this function)
> ldev.c:24: error: (Each undeclared identifier is reported only once
> ldev.c:24: error: for each function it appears in.)
</snip>

It seems you're missing the libpcap development headers.

K



-- 
Kaustubh Gadkari
kaustubh.gadkari at gmail.com




More information about the Plug-mail mailing list