This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Help with installation! plz!
- From: TLN <31337 at mail dot kz>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 8 Jul 2004 00:16:48 +0700
- Subject: Help with installation! plz!
Hello!
Excuse me for my bad english, i'm from kazakhstan......
I got some errors while updating GCC...
I was using gcc version 3.3.x (don't remember), then i got gcc-3.4.0, i installed it like ./configure && make && make install...
Sometimes i useing Kdevelop for programming, i'm newbie in C. So, today i got a new lesson "c" lesson with small hometask, i wrote it, and when i compiling it i got error, i see this in console:
./c: /lib/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/local/lib/libstdc++.so.6)
Press Enter to continue!
I understand that it's something with gcc... i make it again, now i configured with --target=i686
So, What to do??? :-)
Please, write commands i should run from my dir, like
[victor@TLN folder]$ tar zxf gcc-3.4.0.tar.gz
[victor@TLN folder]$ cd gcc-3.4.0
i think it'll be much easy for me, and for you to write commands to execute, maybe because i don't know english wery good (in technology, terms)
i got i686 p4 (willamete), with RedHat Linux, i'm 14 years old, that's my computer.... so nuthing extra ordinary :-)
Thank you!
P.S.
Maybe you will say: There is errors in your program, so whach this:
========================================================
[victor@TLN Desktop]$ cp /usr/share/doc/HTML/en/kdevelop/reference/CPLUSPLUS/EXAMPLES/const1.cc ~/Desktop/
[victor@TLN Desktop]$ cat const1.cc
/**************************************************************************
*
* Language: C++
* Purpose: Program to demonstrate the 'new' statement.
* Author: M J Leslie
* Date: 27-Sep-98
*
* Initialise a constant within a class.
*
**************************************************************************/
#include <iostream.h> // For cout.
class Math
{
public:
// Constructor contains the definition of PI.
Math() : PI(3.142) {}
~Math() {}
float Diameter (float Radius)
{
return (Radius * PI);
}
private:
// Declare PI. We can not assign a value here.
const float PI;
};
main()
{
Math Formula;
float Radius = 5;
cout << " Radius is " << Radius << endl;
cout << " Diameter is " << Formula.Diameter(Radius) << endl;
}
[victor@TLN Desktop]$ gcc -o const1 const1.cc
In file included from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/backward/iostream.h:
31,
from const1.cc:13:
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/backward/backward_warning.h:32:2: warning:
#warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 head
ers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> heade
r for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-d
eprecated.
/tmp/ccb1kGSa.o(.text+0xd): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const'
/tmp/ccb1kGSa.o(.text+0x60): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsign
ed int) const'
/tmp/ccb1kGSa.o(.text+0x9f): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsign
ed int) const'
/tmp/ccb1kGSa.o(.text+0xce): In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsign
ed int) const'
/tmp/ccb1kGSa.o(.text+0x13b): In function `main':
: undefined reference to `std::cout'
/tmp/ccb1kGSa.o(.text+0x140): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/ccb1kGSa.o(.text+0x151): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(float)'
/tmp/ccb1kGSa.o(.text+0x159): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&)'
/tmp/ccb1kGSa.o(.text+0x161): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, st
d::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
/tmp/ccb1kGSa.o(.text+0x185): In function `main':
: undefined reference to `std::cout'
/tmp/ccb1kGSa.o(.text+0x18a): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char > >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
/tmp/ccb1kGSa.o(.text+0x199): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(float)'
/tmp/ccb1kGSa.o(.text+0x1a1): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
/tmp/ccb1kGSa.o(.text+0x1a9): In function `main':
: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, st d::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
/tmp/ccb1kGSa.o(.text+0x201): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::Init()'
/tmp/ccb1kGSa.o(.text+0x21c): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::~Init()'
/tmp/ccb1kGSa.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
[victor@TLN Desktop]$ rm -rf const1.cc
[victor@TLN Desktop]$
=========================================