This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Weird behavior when using "-I" with gcc-2.95.2
- To: 'Fontenot Larry A DLVA' <FontenotLA at NSWC dot NAVY dot MIL>, "'cygwin at sourceware dot cygnus dot com'" <cygwin at sourceware dot cygnus dot com>
- Subject: RE: Weird behavior when using "-I" with gcc-2.95.2
- From: Bernard Dautrevaux <Dautrevaux at microprocess dot com>
- Date: Wed, 26 Apr 2000 17:29:11 +0200
> -----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