tcpdump mailing list archives
Re: small program compile failed when using pcap, "undefined reference to `pcap_set"
From: Guy Harris <guy () alum mit edu>
Date: Fri, 28 Nov 2003 19:25:48 -0800
On Thu, Nov 27, 2003 at 11:00:02PM +0000, Arthur Chen wrote:
this small trying program can not compile, It said undefined reference to `pcap_set_datalink', but this function prototype was included in pcap.h and was implemented in pcap.c! Any idea?
What operating system are you doing this on? Did you download libpcap from tcpdump.org and compile it and install it? If so, did your OS have libpcap before you installed libpcap from tcpdump.org? If so, where did you install libpcap? - This is the TCPDUMP workers list. It is archived at http://www.tcpdump.org/lists/workers/index.html To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe
Current thread:
- small program compile failed when using pcap, "undefined reference to `pcap_set" Arthur Chen (Nov 27)
- Re: small program compile failed when using pcap, "undefined reference to `pcap_set" Guy Harris (Nov 28)
- Re: small program compile failed when using pcap, "undefined reference to `pcap_set" Guy Harris (Nov 28)