• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: pcap programming
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pcap programming


  • Subject: Re: pcap programming
  • From: Damien Pacaud <email@hidden>
  • Date: Thu, 28 Aug 2003 13:19:32 +0200

well , you need to tell gcc to use the right CFlags for the libPcap
I don't know what these are but in the directory where you compiled the lib, you should have a bin directory and in this directory you will probably find some executable like : libpcap-config .... when u execute this program it should tell you the right CFLAGS and LDFLAGS for GCC

I think that should work....(i've never used libpcap but it works like these on other libs)
On Thursday, August 28, 2003, at 01:08 PM, Syphor wrote:

Dear Damien,
All i'm using to compile is

cc main.c -o run
./run

Thats all i do.

On Thursday, August 28, 2003, at 08:42 PM, Damien Pacaud wrote:

what are your gcc flags ?
On Thursday, August 28, 2003, at 12:24 PM, Syphor wrote:

Hey all,
I have tried to install libpcap manuall on my MacOS X machine (10.2.6). I have done the usual...

sudo -s
./configure ppc
make
make install

then I try to compile this simple program.

#include <stdio.h>
#include <pcap.h>

int main( int argc, char* argv )
{
char *dev;
dev = pcap_lookupdev(argv[1]);
printf("Device: %s\n", dev);
return(0);
}

and i get the following error... i have nfi whats wrong :/

ld: Undefined symbols:
_pcap_lookupdev

The version of libpcap i compiled was 0.7.1
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: pcap programming (From: Syphor <email@hidden>)

  • Prev by Date: Re: pcap programming
  • Next by Date: Re: pcap programming
  • Previous by thread: Re: pcap programming
  • Next by thread: Re: pcap programming
  • Index(es):
    • Date
    • Thread