[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libpcap-dev confusion

Petter Reinholdtsen <pere@hungry.com> writes:

> I suspect the libpcap header is missing the magic phrases to make it
> includable in C++.  Try to protect the include statement with 'extern
> "C" {' and '}', to tell the compiler to treat the header as a header
> for C functions.

We would have noticed by now...

ii  libpcap-dev    0.6.2-2        Development library for libpcap.

$ grep -nA2 cplusplus /usr/include/pcap.h
46:#ifdef __cplusplus
47-extern "C"{
174:#ifdef __cplusplus

 : :' :        Romain Francoise <rfrancoise@debian.org>
 `. `'         http://people.debian.org/~rfrancoise/

Reply to: