home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- 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
- From: stan@rti.COM (Stan Schneider)
- Subject: -I option differences
- Message-ID: <9211162350.AA14442@rti.com>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Mon, 16 Nov 1992 23:50:49 GMT
- Approved: bug-gcc@prep.ai.mit.edu
- Lines: 38
-
- Hi Gnu Gurus,
-
-
- There appears to have been a suble change in gcc's include file behavior. The
- compile options:
-
- -Idira -Idirb
-
- with file structure:
-
- dira:
- foo.h
- dirb:
- foo.h fooinclude.h
-
- Yields different results under 2.x that differ from 1.37x. In particular, if
- fooinclude.h contains `#include "foo.h"', and your source includes
- "fooinclude.h", then under 1.37x, you would get dira/foo.h (in the order of the
- options), under 2.x you get dirb/foo.h (the "current" directory has
- precedence).
-
- Was this intended? Adding the options "-I- -I." doesn't really fix the
- "problem"; that fails when you compile source from a subdirectory.
-
- Thanks for your time,
-
- -- Stan
-
-
- ===============================================================================
- = = =
- = Stan Schneider = email: stan@rti.com =
- = Real-Time Innovations, Inc. = Phone: (408) 720-8312 =
- = 954 Aster, Sunnyvale, CA 94086 = Fax: (408) 720-8419 =
- = = =
- ===============================================================================
-
-
-