🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Stan Schneider Mon, 16 Nov 1992 23:50
-I option differences
#1410
Author: Stan Schneider
Date: Mon, 16 Nov 1992 23:50
36 lines
1728 bytes
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         =
=                                           =                                 =
===============================================================================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads