delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/10/17/05:57:27

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 17 Oct 2008 16:56:01 +0700
From: bjoe <bayuadi DOT w AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: struct iphdr in netinet/ip.h
Message-ID: <20081017095526.GA564@dwtc-b98>
Mail-Followup-To: cygwin AT cygwin DOT com
Mime-Version: 1.0
User-Agent: Mutt/1.4.2.2i
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

Hi all,
I am sorry for this newbie question
I get this error messages when try to compile program in cygwin, but
this program compiled successfully in Linux.

$ gcc-4 test.c
test.c: In function 'main':
test.c:152: error: invalid application of 'sizeof' to incomplete type
'struct iphdr'
test.c:153: error: invalid application of 'sizeof' to incomplete type
'struct iphdr'

My investigation show me that cygwin not have iphdr difinitions in netinet/ip.h
like Linux. I use cygwin 1.5.25(0.156/4/2), so maybe someone in this
list can explain to me how to workaround this.

-- 
It is easy to say no when
          there is a deeper yes burning within

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

- Raw text -


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