I'm studying programing in Redhat9.0 now.
I want my program to capture the data in the newwork.
I first setup the libpcap,but when I compile my program,it said as follow:
[root@localhost code]# g++ CapturePtold.cpp -lpcap
/tmp/cc7SCTi9.o(.text+0x260): In function `main':
: undefined reference to `pcap_next_ex'
collect2: ld returned 1 exit status
I found there is a file "pcap.h" in the "/usr/local/include". So I think the pcap.c should in my computer. Why my compiler can't find the reference to "pcap_next_ex"?
Could somebody help me?