home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aux
- Path: sparky!uunet!sun-barr!sh.wide!wnoc-tyo-news!etl.go.jp!weigert
- From: weigert@etlhit.etl.go.jp (Thomas Weigert)
- Subject: Re: Q. re: dir.h
- In-Reply-To: jim@jagubox.gsfc.nasa.gov's message of Wed, 26 Aug 1992 10: 21:32 GMT
- Message-ID: <WEIGERT.92Aug27100055@etlhit.etl.go.jp>
- Sender: news@etl.go.jp (News System)
- Nntp-Posting-Host: etlhit
- Reply-To: weigert@mcs.anl.gov
- Organization: Electrotechnical Laboratory, Tsukuba-shi, Japan
- References: <WEIGERT.92Aug26135535@etlhit.etl.go.jp>
- <1041@jagubox.gsfc.nasa.gov>
- Date: Thu, 27 Aug 1992 01:00:55 GMT
- Lines: 46
-
- In article <1041@jagubox.gsfc.nasa.gov>
- jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
-
- JJ> 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.
-
- JJ> First of all, the above declaration assumes that you are using an ANSI C
- JJ> compiler... if this isn't the case, then that could be a problem.
-
- JJ> Secondly, be sure that sys/types.h is #included before dir.h
-
- Thanks. I received the answer about sys/types.h also from zak@RMIT.EDU.AU
- (Luke Mewburn).
-
- However, in the cases where I ran into trouble, I did have types.h
- included.
-
- After a few more experiments yesterday night I came up with the following
- heuristic rule:
-
- If "compile gets funny parsing errors due to dir.h"
- and "sys/types.h is already included"
- then "use gcc with flag -traditional"
-
- This helped for ispell 3.0.7.
-
- Cheers, Thomas.
-
- --
- +--------------------------------+---------------------------------+
- | Thomas Weigert | |
- | Machine Inference Section | |
- | Electrotechnical Laboratory | |
- | Umezono 1-1-4, Tukuba-shi | weigert@{mcs.anl.gov,etl.go.jp} |
- | Ibaraki 305, Japan | +81-298-58-5918 (phone+fax) |
- +--------------------------------+---------------------------------+
-