Show the compile line. For example: did you tell the linker to look at libpcap with -lpcap? Hope this hepls, On Fri, Jul 01, 2005 at 09:06:39AM -0700, Vinay Venkataraghavan wrote: > > Hey guys, > > I am writing a simple packet capture utility but am > having problems while compiling the code. > > When I compile I get the following errors: > > /tmp/cciIObrQ.o(.text+0x35):in function 'main': > :undefined reference to 'pcap_lookupdev' > > I also get the similar errors for the functions with > different memory addresses ofcourse: > pcap_lookupnet, pcap_open_live etc.... > > So it looks like a problem linking the pcap library. > But I have the pcap installed etc.. > > Any ideas what the problem could be? > Thanks, > Vinay -- Martijn van Oosterhout <kleptog@xxxxxxxxx> http://svana.org/kleptog/ > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a > tool for doing 5% of the work and then sitting around waiting for someone > else to do the other 95% so you can sue them.
Attachment:
pgprF4QZHEcTi.pgp
Description: PGP signature