home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / aux / 3242 < prev    next >
Encoding:
Text File  |  1992-08-26  |  2.2 KB  |  62 lines

  1. Newsgroups: comp.unix.aux
  2. Path: sparky!uunet!sun-barr!sh.wide!wnoc-tyo-news!etl.go.jp!weigert
  3. From: weigert@etlhit.etl.go.jp (Thomas Weigert)
  4. Subject: Re: Q. re: dir.h
  5. In-Reply-To: jim@jagubox.gsfc.nasa.gov's message of Wed, 26 Aug 1992 10: 21:32 GMT
  6. Message-ID: <WEIGERT.92Aug27100055@etlhit.etl.go.jp>
  7. Sender: news@etl.go.jp (News System)
  8. Nntp-Posting-Host: etlhit
  9. Reply-To: weigert@mcs.anl.gov
  10. Organization: Electrotechnical Laboratory, Tsukuba-shi, Japan
  11. References: <WEIGERT.92Aug26135535@etlhit.etl.go.jp>
  12.     <1041@jagubox.gsfc.nasa.gov>
  13. Date: Thu, 27 Aug 1992 01:00:55 GMT
  14. Lines: 46
  15.  
  16. In article <1041@jagubox.gsfc.nasa.gov>
  17.     jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
  18.  
  19. JJ> weigert@etlhit.etl.go.jp (Thomas Weigert) writes:
  20.  
  21.  
  22. >Often, when porting software that compiles fine on all kinds of unix boxes
  23. >over to A/UX, I run into the following difficulty:
  24.  
  25. >Almost unfailingly, when dir.h is included, the compiler complains about
  26. >"parsing problems before *", and the offending lines typically are
  27.  
  28. >   telldir (DIR *dirp);
  29.  
  30. >or any of the other functions that have DIR as their type. 
  31.  
  32. JJ> First of all, the above declaration assumes that you are using an ANSI C
  33. JJ> compiler... if this isn't the case, then that could be a problem.
  34.  
  35. JJ> Secondly, be sure that sys/types.h is #included before dir.h
  36.  
  37. Thanks. I received the answer about sys/types.h also from zak@RMIT.EDU.AU
  38. (Luke Mewburn).
  39.  
  40. However, in the cases where I ran into trouble, I did have types.h
  41. included. 
  42.  
  43. After a few more experiments yesterday night I came up with the following
  44. heuristic rule:
  45.  
  46. If "compile gets funny parsing errors due to dir.h"
  47. and "sys/types.h is already included"
  48. then "use gcc with flag -traditional"
  49.  
  50. This helped for ispell 3.0.7.
  51.  
  52. Cheers, Thomas.
  53.  
  54. --
  55. +--------------------------------+---------------------------------+
  56. | Thomas Weigert                 |                                 |
  57. | Machine Inference Section      |                                 |
  58. | Electrotechnical Laboratory    |                                 |
  59. | Umezono 1-1-4, Tukuba-shi      | weigert@{mcs.anl.gov,etl.go.jp} |
  60. | Ibaraki 305, Japan             | +81-298-58-5918 (phone+fax)     |
  61. +--------------------------------+---------------------------------+
  62.