Weird behavior when using "-I" with gcc-2.95.2

Bernard Dautrevaux Dautrevaux@microprocess.com
Wed Apr 26 08:30:00 GMT 2000


> -----Original Message-----
> From: Fontenot Larry A DLVA [ mailto:FontenotLA@NSWC.NAVY.MIL ]
> Sent: Tuesday, April 25, 2000 9:04 PM
> To: 'cygwin@sourceware.cygnus.com'
> Cc: Fontenot Larry A DLVA
> Subject: RE: Weird behavior when using "-I" with gcc-2.95.2
> 
> 
> 
> Well, the only solution I could come up with was to compile with the
> following:
> 	g++ -I /usr/i686-pc-cygwin/include -I./ -c hello.cpp
> 

And what happens if you use -I. instead of -I./; "-Isomething" is used to
search "#include <file>" as "something/file", so using "-I./" to get
"<sys/cdefs.h>" will try to look at ".//sys/cdefs.h" which is an invalid
path as "//" should only occur at the beginning of a path name under
Losedows :-)

HTH

		Bernard


--------------------------------------------
Bernard Dautrevaux
Microprocess Ingéniérie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list