delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Tue, 17 Jul 2001 10:47:39 +0200 |
From: | Corinna Vinschen <cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Error on compilation |
Message-ID: | <20010717104739.E15396@cygbert.vinschen.de> |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <EA18B9FA0FE4194AA2B4CDB91F73C0EF08F126 AT itdomain002 DOT itdomain DOT net DOT au> <POEMIHAKNHMKPMCELLMEKELECFAA DOT christophe DOT wenk AT kuehne-nagel DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.2.5i |
In-Reply-To: | <POEMIHAKNHMKPMCELLMEKELECFAA.christophe.wenk@kuehne-nagel.com>; from christophe.wenk@kuehne-nagel.com on Tue, Jul 17, 2001 at 08:42:50AM +0200 |
On Tue, Jul 17, 2001 at 08:42:50AM +0200, Chris Wenk wrote: > Hi there > > I tried to compile several programs ported from a suse linux box. > Some compilation works but then I have also a lot of programs with > following error message: > > sizeof applied to an incomplete type > dereferencing pointer to incomplete type > > Does anybody know what I have to change ? > > my compilation is as follow: gcc -o test.exe test.c > > the errors first appears at following statement (see ==>): > > unsigned char *packet; > struct iphdr *ip; > struct icmphdr *icmp; > > ==> packet = (unsigned char *)malloc(sizeof(struct iphdr) + > sizeof(struct > icmphdr) + 8); The ip related headers aren't complete. Many definitions available under Linux are missing. We would gladly appreciate if somebody would create header files for Cygwin containing these definitions. The problem is that we can't simply copy the Linux headers due to licensing restrictions. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |