delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/09/01:27:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3D2A7421.9020408@netscape.net>
Date: Tue, 09 Jul 2002 10:56:57 +0530
From: venkatesh <venkateshbr AT netscape DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020512 Netscape/7.0b1
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: C++ compilation problem with g++ 3.1.1

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 AT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019