home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12537 < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.7 KB  |  57 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!fs7.ece.cmu.edu!alaybeyi
  3. From: alaybeyi@datsun.ece.cmu.edu (Murat Alaybeyi)
  4. Subject: Unreasonable include nesting?? (AT&T cfront question)
  5. Message-ID: <ALAYBEYI.92Aug19024046@datsun.ece.cmu.edu>
  6. Sender: news@fs7.ece.cmu.edu (USENET News System)
  7. Organization: VLSI CAD Center, Carnegie Mellon University
  8. Distribution: comp.lang.c++
  9. Date: Wed, 19 Aug 1992 07:40:46 GMT
  10. Lines: 45
  11.  
  12.  
  13. When I compile a bunch of C++ files using AT&T cfront2 I get a cpp error.
  14. The error message is as follows:
  15.  
  16.  /server/CenterLine/c++_1.1.0-r1.0/sun4-40/include/sys/resource.h : 8 :
  17.  Unreasonable include nesting.
  18.  CC: cpp failure : 2 
  19.  *** Error code 1
  20.  
  21.  
  22. I am pretty sure that all of my header files are protected against double inclusion.
  23.  
  24. I also used gcc to find the inclusion dependencies of the source files, I did
  25. not get any cpp error in this case. (I still used the AT&T system header 
  26. files; not the gnu header files)
  27.  
  28.  
  29. However when I include osfcn.h right at the beginning of the C file that I am 
  30. compiling the error is gone and everything is fine.
  31.  
  32. We have 7-8 level of include file nesting. 
  33.  
  34. This problem does not exist within objectcenter.
  35.  
  36. Is there a known bug in the cfront system header files or is it a cpp error or
  37. something else that we are doing wrong.
  38.  
  39.                                                        Murat Alaybeyi
  40.                                                        Vivek Raghavan
  41.  
  42.  
  43. --
  44. --
  45. Murat Alaybeyi,                              ECE Department
  46. Phone: (412) 268-5238                        Carnegie Mellon University
  47. e-mail: alaybeyi@ece.cmu.edu                 Pittsburgh, PA. 15213   U.S.A.
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.