Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/