• 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: "Alastair J.Houghton" <email@hidden>
  • Date: Thu, 28 Aug 2003 12:24:48 +0100

On Thursday, August 28, 2003, at 12:08 pm, Syphor wrote:

Dear Damien,
All i'm using to compile is

cc main.c -o run
./run

Thats all i do.

You actually have to tell the compiler to link with the library, otherwise it'll never work! Try

cc main.c -lpcap -o run

(or if libpcap.a isn't in your default library search path

cc main.c -L/path/to/libpcap/ -lpcap -o run)

Kind regards,

Alastair.
_______________________________________________
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: Input Notifications??
  • Previous by thread: Re: pcap programming
  • Next by thread: Re: pcap programming
  • Index(es):
    • Date
    • Thread