[OpenWrt-Devel] Cross compiling problems with libpcap

2011-10-20 Thread 马进
Hi, I am trying to cross compile a program for openwrt to capture the beacon frames. The program(beaconCap.c) is as follows. * #includestdio.h #includestring.h #includestdlib.h #includepcap.h

Re: [OpenWrt-Devel] Cross compiling problems with libpcap

2011-10-20 Thread Jo-Philipp Wich
Your gcc commandline lacks -lpcap, also never compile against host headers when cross compiling, use the pcap headers in staging_dir. ~ Jow ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org