linux系统找不到Pcap.h

First

apt-get install libpcap0.8-dev to install libpcap
sudo apt-get install libcap-dev

Second

 sudo apt-get install libpcap0.8-dev 
gcc example_pcap.c -o example_pcap -lpcap

你可能感兴趣的:(linux系统找不到Pcap.h)