Article View: gnu.gcc.help
Article #41810-I- woes...
From: Steve Sherman
Date: Wed, 14 Feb 1996 00:00
Date: Wed, 14 Feb 1996 00:00
22 lines
1378 bytes
1378 bytes
I am using GCC 2.6 and because of my build environment (ODE) need to force the compiler to search all specified -Idirectories in the following order
for files with #include "xxx.h" statements:
- directories specified with -I option
- current directory where source is (where source is where the #include
statement is).
The closest thing I could find to this was -I-, which gives me the first
set of directories but unforunately not the second. If I add -I. after -I-
I still don't get what I need - since the -I. only looks in the directory
of the c source file and not the directory where the #include directive is.
For example if src/x.c includes "src/include/x.h" which includes "y.h"
where y.h is in the src/include directory, I get a failure - y.h can't be
found.
Question: Does GCC 2.6 or later possess any options or set of options that
will give the desired search path?
For example, CSet++ has a -qidirfirst option that works ok. Thanks
Steve
Technical Details
Message-ID:
<4fra6f$1d0k@rtpnews.raleigh.ibm.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,7fb0e30fa34b80de,start X-Google-Attributes: gid11318c,public From: sherman@honey.raleigh.ibm.com (Steve Sherman) Subject: -I- woes... Date: 1996/02/14 Message-ID: <4fra6f$1d0k@rtpnews.raleigh.ibm.com> X-Deja-AN: 139273266 distribution: IBM organization: IBM NRS keywords: -I- ODE newsgroups: gnu.gcc.help