include file syntax errors?

Thomas Gee gee at dretor.dciem.dnd.ca
Thu Oct 18 23:23:24 AEST 1990


In article <22427 at fs2.NISC.SRI.COM> cwilson at NISC.SRI.COM (Chan Wilson [Animal]) writes:
>
>I'm trying to port some fairly tame programs we've developed here, and 
>keep running into a include file syntax errors!

It is not terribly unusual (although it can be terribly frustrating) for
include files to have dependencies on other include files.  In the particular
case you gave (utmp.h), you must include <sys/types.h> before including the
utmp library.

BTW: I did a "man utmp", which brought up the getut(3C) man page, which gives
this information.

>Chan Wilson                                  Chief Hard-Question Answer Person
>SRI Intl. Network Information Systems Center
>333 Ravenswood Ave., EJ287			Internet: cwilson at nisc.sri.com
>Menlo Park, CA., 94025				Phone: (415)859-4492
>    "If I want to be a surfer this month, I bloody well will be."

Tom.

-------------------------------------------------------------------------------
Thomas Gee       |
Aerospace Group  | a man in search of a quote
DCIEM, DND       |
Canada           | gee at dretor.dciem.dnd.ca
-------------------------------------------------------------------------------



More information about the Comp.unix.aux mailing list