home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aux
- Path: sparky!uunet!sun-barr!ames!nsisrv!jagubox!jim
- From: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
- Subject: Re: Q. re: dir.h
- Message-ID: <1041@jagubox.gsfc.nasa.gov>
- Lines: 29
- Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
- Nntp-Posting-Host: jagubox.gsfc.nasa.gov
- Reply-To: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
- Organization: NASA/Goddard Space Flight Center
- References: <WEIGERT.92Aug26135535@etlhit.etl.go.jp>
- Date: Wed, 26 Aug 1992 10:21:32 GMT
-
- weigert@etlhit.etl.go.jp (Thomas Weigert) writes:
-
-
- >Often, when porting software that compiles fine on all kinds of unix boxes
- >over to A/UX, I run into the following difficulty:
-
- >Almost unfailingly, when dir.h is included, the compiler complains about
- >"parsing problems before *", and the offending lines typically are
-
- > telldir (DIR *dirp);
-
- >or any of the other functions that have DIR as their type.
-
- >Unfortunately, I know very little about C (I just read it, and eventually,
- >by trial and error and the little mac porting skills I acquired that way, I
- >get the programs going). I would apopreciate very much if somebody could
- >explain to me what the problem is in this case, and what to do about it.
-
- >Any hints are welcome. Cheers, Thomas.
-
- First of all, the above declaration assumes that you are using an ANSI C
- compiler... if this isn't the case, then that could be a problem.
-
- Secondly, be sure that sys/types.h is #included before dir.h
- --
- Jim Jagielski | "This is supposed to be a happy occasion.
- jim@jagubox.gsfc.nasa.gov | Let's not bicker and argue about who
- NASA/GSFC, Code 734.4 | killed who."
- Greenbelt, MD 20771 |
-