public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Todd Kokoszka <kokostm@auburn.edu>
To: gcc-help@gcc.gnu.org
Subject: can't find c++ header files
Date: Thu, 11 Jul 2002 13:06:00 -0000	[thread overview]
Message-ID: <20020711195306.E5862@auburn.edu> (raw)

 
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 <iostream> 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



             reply	other threads:[~2002-07-11 20:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-11 13:06 Todd Kokoszka [this message]
2002-07-11 14:03 ` Claudio Bley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020711195306.E5862@auburn.edu \
    --to=kokostm@auburn.edu \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).