home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / gcc / bug / 2778 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.6 KB  |  51 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rti.COM!stan
  3. From: stan@rti.COM (Stan Schneider)
  4. Subject: -I option differences
  5. Message-ID: <9211162350.AA14442@rti.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 16 Nov 1992 23:50:49 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 38
  12.  
  13. Hi Gnu Gurus,
  14.  
  15.  
  16. There appears to have been a suble change in gcc's include file behavior.  The
  17. compile options:
  18.  
  19.     -Idira -Idirb
  20.  
  21.     with file structure:
  22.  
  23.     dira:
  24.        foo.h
  25.     dirb:
  26.        foo.h fooinclude.h
  27.  
  28. Yields different results under 2.x that differ from 1.37x.  In particular, if
  29. fooinclude.h contains `#include "foo.h"', and your source includes
  30. "fooinclude.h", then under 1.37x, you would get dira/foo.h (in the order of the
  31. options), under 2.x you get dirb/foo.h (the "current" directory has
  32. precedence).
  33.  
  34. Was this intended?  Adding the options "-I- -I." doesn't really fix the
  35. "problem"; that fails when you compile source from a subdirectory.
  36.  
  37. Thanks for your time,
  38.  
  39.         -- Stan
  40.  
  41.  
  42. ===============================================================================
  43. =                                           =                                 =
  44. =   Stan Schneider                          =   email: stan@rti.com           =
  45. =   Real-Time Innovations, Inc.             =   Phone: (408) 720-8312         =
  46. =   954 Aster, Sunnyvale, CA 94086          =   Fax:   (408) 720-8419         =
  47. =                                           =                                 =
  48. ===============================================================================
  49.  
  50.  
  51.