libpcap in Cocoa
libpcap in Cocoa
- Subject: libpcap in Cocoa
- From: Ivan Myrvold <email@hidden>
- Date: Sun, 19 Aug 2001 23:12:02 +0200
I found a tutorial on the net, for capturing packets with libpcap. I
thought I would try out the tutorial with a graphical user interface,
i.e. Cocoa.
The GUI of it was straight-forward, but I have some problems with
compiling the project.
I added the file pcap.h in PB, and added #import "pcap.h" to my
MyWindowController.m file. But when I compile it, I get
warning prebinding disabled because of undefined symbols
Undefined symbols:
The project compiles when I am commenting out
dev = pcap_lookupdev(errbuf);
and
ret = pcap_lookupnet(dev,&netp,&maskp,errbuf);
But these are defined in pcap.h
What am I doing wrong here?
Ivan