tcpdump mailing list archives
Re: Compilation Error - C2894: templates cannot be declared to have 'C' linkage
From: Guy Harris <guy () alum mit edu>
Date: Mon, 24 Sep 2007 16:27:58 -0700
On Sep 22, 2007, at 12:37 AM, Varuna De Silva wrote:
This is the program pcap-xxx.c which includes in it xxx_open_live() in it.
That's not a "program" in the sense of an executable program; it's something you're adding to libpcap, so it's allowed to include pcap- int.h.
I've checked in a change to the main branch of libpcap to move the include of <pcap.h> outside the extern "C" { } in pcap-int.h, as pcap.h has its own extern "C" { }. That will probably show up in some future WinPcap release (as well as a future libpcap release).
You can do the same for your own development. - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Compilation Error - C2894: templates cannot be declared to have 'C' linkage Varuna De Silva (Sep 19)
- Re: Compilation Error - C2894: templates cannot be declared to have 'C' linkage Guy Harris (Sep 20)
- <Possible follow-ups>
- Re: Compilation Error - C2894: templates cannot be declared to have 'C' linkage Varuna De Silva (Sep 24)
- Re: Compilation Error - C2894: templates cannot be declared to have 'C' linkage Guy Harris (Sep 24)