Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: SAINT on Alpha
Date: Wed, 3 Feb 1999 10:27:49 -0700 (MST)	[thread overview]
Message-ID: <199902031727.KAA17184@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <19990203100726.8083.qmail@hotmail.com> from "Designer 7" at Feb 3, 99 02:07:25 am

Designer 7 wrote:
> 
> 
> I'm getting compile errors I don't understand at all...
> 
> the error is along the line of:
> xxx:no member named ip_hl in structure

It is a bit field - by looking at ip.h header but __BYTE_ORDER
has to be equal to one of two things before you will get it.
This should come from some other headers.

> the basic structure of the code is something like:

In situations like that, when you are not sure what compiler is
really getting, try to add '-E' to compilations flags you use,
capture output and check it (collapsing all these blank lines
by filtering it through something like "awk 'NF>0'" often helps
in readability :-).  Sometimes things are different than they
look like at the first blush.

The above assumes, of course, that your compiler was not wailing
about redefinitions and the like - what you blissfully ignored.

> #include <netinet/ip.h>
......
> I tried removing the struct in front of the ip... but that gave more 
> problems..

It would be extremely surprising if it did not. :-)

  Michal


      reply	other threads:[~1999-02-03 20:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-03 10:07 SAINT on Alpha Designer 7
1999-02-03 17:27 ` Michal Jaegermann [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox