This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

can't find c++ header files


 
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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]