delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/27/14:08:07

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4AE74506.9010901@cygwin.com>
Date: Tue, 27 Oct 2009 15:07:50 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: including file
References: <26079764 DOT post AT talk DOT nabble DOT com> <4AE718B9 DOT 2050004 AT cygwin DOT com> <26082915 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <26082915.post@talk.nabble.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 10/27/2009 02:42 PM, Mar11 wrote:
>
>
> thanks alot for your respons.
>
> you can view the code form this website:
>
> http://www.mirrorservice.org/sites/ftp.wiretapped.net/pub/security/packet-capture/winpcap/docs/docs_40_2/html/group__wpcap__tut2.html
>
> the used compile flag is:
>
> gcc -o testprog testprog.c -lpcap (if assumed that the file name is
> testprog.c)
>
> thanks in advance

OK, so if_ether.h isn't in this source.  I guess that won't be a problem.

Is there a reason you're trying to compile this for Cygwin?  It would seem 
to me
that if your goal was to build and run this on Windows, you'd be better off with
Mingw (mingw.org).  Otherwise, if you prefer to continue in the direction 
that you
started, the problem you're having, I cannot reproduce.  Seeing your command 
line
didn't offer any insights.  So I'd recommend *attaching* cygcheck output at 
least if
you want to follow up.  'gcc --version' may also help.  Seeing the output of
"ls -l /usr/include/netinet/in.h /usr/include/arpa/inet.h" might help as well.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019