* C++ compilation problem with g++ 3.1.1
@ 2002-07-08 23:07 venkatesh
2002-07-08 23:11 ` Charles Wilson
0 siblings, 1 reply; 2+ messages in thread
From: venkatesh @ 2002-07-08 23:07 UTC (permalink / raw)
To: cygwin
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: C++ compilation problem with g++ 3.1.1
2002-07-08 23:07 C++ compilation problem with g++ 3.1.1 venkatesh
@ 2002-07-08 23:11 ` Charles Wilson
0 siblings, 0 replies; 2+ messages in thread
From: Charles Wilson @ 2002-07-08 23:11 UTC (permalink / raw)
To: cygwin
venkatesh wrote:
> 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.
This has already been reported -- check the archives. cgf is on the case.
--Chuck
--
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-09 5:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-08 23:07 C++ compilation problem with g++ 3.1.1 venkatesh
2002-07-08 23:11 ` Charles Wilson
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).