This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Weird behavior when using "-I" with gcc-2.95.2
- To: "'cygwin at sourceware dot cygnus dot com'" <cygwin at sourceware dot cygnus dot com>
- Subject: Weird behavior when using "-I" with gcc-2.95.2
- From: Fontenot Larry A DLVA <FontenotLA at NSWC dot NAVY dot MIL>
- Date: Tue, 25 Apr 2000 09:39:53 -0400
I am having strange behavior when trying to use the "-I" option to append to
the include search path when using g++ 2.95.2-1. For example, I have a
simple "Hello World" application:
#include <iostream>
int main(int argc, void ** argv) {
cout << "Hello World!" << endl;
return(1);
}
bash-2.03$ g++ -c hello.cpp
bash-2.03$ g++ -o hello.win32.exe hello.o
bash-2.03$ g++ -I./ -c hello.cpp
In file included from
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/streambuf.h
:36,
from
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/iostream.h:
31,
from
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/iostream:6,
from hello.cpp:2:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/libio.h:59:
sys/cdefs.h: Invalid argument
Yet the file cdefs.h exists in /usr/i686-pc-cygwin/include/sys/cdefs.h.
Have I overlooked the obvious somewhere. I can't believe "-I" doesn't work.
Thanks,
Larry
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com