public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* replace deprecated option "-I-" by "-iquote" and ?
@ 2008-05-28 17:12 Frederic Fayret
  0 siblings, 0 replies; only message in thread
From: Frederic Fayret @ 2008-05-28 17:12 UTC (permalink / raw)
  To: gcc-help

Hello,
My question:
If I remove "-I-" gcc option, which option should I use to keep "inhibits the use of the current directory" functionality?

Here is my case study:
local/sim.h
inc/sim.h
inc/inc_sim.h
main.c

sim.h:
#define TOTO 1
inc_sim.h:
#include "sim.h"
#define TITI 2

main.c:
#include "sim.h"
#include "inc_sim.h"
....

>gcc -w -E -MM -Uunix -iquotelocal -iquoteinc main.c
main.o: main.c local/sim.h inc/inc_sim.h inc/sim.h

>gcc -w -E -MM -Uunix -iquotelocal -iquoteinc -I- main.c
main.o: main.c local/sim.h inc/inc_sim.h

So with "-I-"  inc/inc_sim.h is not listed.

Thanks in advance
Fred

__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-28 16:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-28 17:12 replace deprecated option "-I-" by "-iquote" and ? Frederic Fayret

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).