C++ compilation problem with g++ 3.1.1

venkatesh venkateshbr@netscape.net
Mon Jul 8 23:07:00 GMT 2002


Hello

I have updated to latest test release of gcc 3.1.1(and gcc2). After 
updating I couldn't compile C++ code using g++. It seems it strips the 
include path. Can anybody help how to fix this.

Previously I have compiled successfully gcc3 and installed under 
/usr/local/. The gcc part worked flawlessly. I have even compiled vim 
(including X)with it. But i had problems with g++ to compile code that 
includes templates and others.So I have removed it before updating to 
official test release.

The output follows:
[venkatesh@mars]/usr/local/src/cc/hello:{21}:$ g++ -v -Wall -g -o hello 
hello.cc
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.1.1/specs
...
...
ignoring nonexistent directory "/usr/include/g++-"
ignoring nonexistent directory "/usr/include/g++-/i686-pc-cygwin"
ignoring nonexistent directory "/usr/include/g++-/backward"
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc-lib/i686-pc-cygwin/3.1.1/include
 /usr/include
End of search list.
hello.cc:1:20: iostream: No such file or directory
hello.cc: In function `int main()':
hello.cc:7: `cout' undeclared (first use this function)
hello.cc:7: (Each undeclared identifier is reported only once for each 
function
   it appears in.)
hello.cc:7: `endl' undeclared (first use this function)


Thanks
venkatesh


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list