Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Internal-ID: 3B235FA800192D74 From: "Chris Wenk" To: Subject: Error on compilation Date: Tue, 17 Jul 2001 08:42:50 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 Importance: Normal 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); Thanks for help Chris -- 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/