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"{
48-#endif
--
174:#ifdef __cplusplus
175-}
176-#endif
$
--
,''`.
: :' : Romain Francoise <rfrancoise@debian.org>
`. `' http://people.debian.org/~rfrancoise/
`-
Reply to: