From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15959 invoked by alias); 11 Jul 2002 20:06:58 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 15952 invoked from network); 11 Jul 2002 20:06:57 -0000 Received: from unknown (HELO pixie.home) (62.212.96.66) by sources.redhat.com with SMTP; 11 Jul 2002 20:06:57 -0000 Received: (from todd@localhost) by pixie.home (8.11.6/8.11.6) id g6BHr7c06389 for gcc-help@gcc.gnu.org; Thu, 11 Jul 2002 19:53:07 +0200 (CEST) (envelope-from kokostm@auburn.edu) X-Authentication-Warning: pixie.home: todd set sender to kokostm@auburn.edu using -f Date: Thu, 11 Jul 2002 13:06:00 -0000 From: Todd Kokoszka To: gcc-help@gcc.gnu.org Subject: can't find c++ header files Message-ID: <20020711195306.E5862@auburn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-SW-Source: 2002-07/txt/msg00108.txt.bz2 Hello, I recently installed gcc 3.0.4 while keeping gcc 2.95.3 on my machine. I'd like to use 3.0.4 to compile c++ and java programs. I didn't know where to put the c++ parts of 3.0.4 that I want to use without screwing up the 2.95.3 C stuff, so I stuck 3.0.4 in /usr/local/gcc-3.0.4 -- maintaining the installation hierarchy. When I try to compile a simple c++ program, that just prints the value of a variable, the compiler tells me that cout and endl are not declared. I included the iostream header, set the CPLUS_INCLUDE_PATH, and COMPILER_PATH environement varialbes to the new location under /usr/local/gcc-3.0.4 and even passed the directory with -I. I tried using the standard #include and #include "direct path to file" and neither worked. If anyone has any ideas what I'm missing or where to find information abou t how to install two compilers like I want to, I'm happy to hear them. Thanks. Todd