Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem linking pcap

Status
Not open for further replies.

reshamtara

Programmer
Dec 27, 2002
3
US
im trying to write a sniffer pgm using pcap library. a small sample program that i tried compiled fine but gave a linker error(ld). the error read "undefined reference to pcap_open_live()"......or something like that . kindly enlighten this lost soul as to wat could be the problem, and wat i can do to overcome it.(this was on both redhat linux 9 and 8)
 
You probably need to have the pcap-devel headers and such somewhere for your compiler to use during compilation. If you aren't root on the system, extract them to your home directory and specify the include location with an &quot;-I<your include path>&quot; parameter to gcc.

----
JBR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top