[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: glibc-2.7 and gcc-4.2.2 install on redhat 3 u 9 - x86_64
From: |
FÖLDY Lajos |
Subject: |
RE: glibc-2.7 and gcc-4.2.2 install on redhat 3 u 9 - x86_64 |
Date: |
Tue, 15 Apr 2008 20:39:15 +0200 |
On Tue, 15 Apr 2008, Lamont, Brian-p3354c wrote:
Thanks for clearing up my naming standards. The file was renamed accordingly,
but I still error with it unable to find iostream. You didn't really answer
this part of my previous question. This version of gcc is 4.2.2.
<sys4-root> g++ hello.cc
hello.c:1:20: error: iostream: No such file or directory
hello.c: In function âint main()â:
hello.c:3: error: âcoutâ was not declared in this scope
What is the output of g++ -v ? g++ can not find iostream, probably your
GCC installation is corrupted.
And what about this error during the configure of glibc?
-------------------------------------------------------------------------------
no checking for -z nodelete option... yes checking for -z nodlopen
option... yes checking for -z initfirst option... yes checking for -z
relro option... no
configure: error: linker with -z relro support required
Your linker is too old. Check the glibc documentation for the minimum
version requirement (and ld -v).
Do I need glibc? If not, how do I fix my g++ error above?
If I need glibc, how do I fix this problem with the linker options?
glibc is the system library. You need the original glibc for your
system, do not try to replace it.
glibc 2.7 is not required for GCC 4.2. I am using GCC 4.2/4.3 with glibc
2.2.5 (32 bit) and 2.3.2 (64 bit) successfully.
Try to install GCC 4.2.2 again, under /usr/local/gcc-4.2.2. If the
installation completes without any error, /usr/local/gcc-4.2.2/bin/g++
should work.
regards,
lajos
And thanks very much for your prompt responses! Very much appreciated!
brian