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

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