help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

library problem - my own version of C++ using gcc does not link


From: Jim Anderson
Subject: library problem - my own version of C++ using gcc does not link
Date: Tue, 22 May 2007 23:03:14 GMT
User-agent: Thunderbird 1.5.0.8 (X11/20061117)


I have down loaded 'gcc-4.1.2.tar.bz2' and build the
default version and installed in in /usr/local on
my system. I'm running on Kubuntu Linux and used gcc
version 3.4.6  to compile gcc-4.1.2.

I tried compiling a C++ program that I have. All of the
C++ files compile ok, but during the linking phase,
I get numerous error messages. The first of which is:

>>> test.o: In function `__static_initialization_and_destruction_0':/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/iostream:76: undefined reference to `std::ios_base::Init::Init()'

It looks to me like the libraries are not being found right.

Can anyone help me on how to go about getting the program
to link properly?

Thank you in advance for any suggestions.

Jim Anderson


reply via email to

[Prev in Thread] Current Thread [Next in Thread]