This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Error on compilation
- To: <cygwin at cygwin dot com>
- Subject: Error on compilation
- From: "Chris Wenk" <christophe dot wenk at kuehne-nagel dot com>
- Date: Tue, 17 Jul 2001 08:42:50 +0200
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/