help-gplusplus
[Top][All Lists]
Advanced

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

Linking problem after reinstall of gcc 3.3.3


From: Martin Magnusson
Subject: Linking problem after reinstall of gcc 3.3.3
Date: Mon, 11 Jul 2005 15:57:13 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

I recently tried to install gcc 3.4.4 in parallel to the 3.3.3 installation I already had (under Cygwin). I built gcc 3.4.4 with --prefix=/usr/local and --program-suffix=-3.4.4

However, after "make install", building the project I'm working on with gcc 3.3.3 didn't work anymore. I'm getting numerous "undefined reference" errors during linking. Compiling with gcc 3.4.4 doesn't work either, but that's more because of problems with my source code. Even after removing all traces of gcc 3.4.4 (I believe) and using Cygwin's installation program to reinstall gcc 3.3.3, I still get the same errors. Compiling simple tests works fine, however.

Here is an example of the top of the error output:

convert.o: In function `_ZSt9sort_heapIN9__gnu_cxx17__normal_iteratorIPN3MMN7KD_TreeILj3EE7KD_NodeESt6vectorIS5_SaIS5_EEEENS4_10Compare_IDEEvT_SC_T0_': /usr/include/c++/3.3.3/bits/stl_heap.h:(.text+0x1f2): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage' /usr/include/c++/3.3.3/bits/stl_heap.h:(.text+0x1f7): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage' /usr/include/c++/3.3.3/bits/stl_heap.h:(.text+0x769): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage' /usr/include/c++/3.3.3/bits/stl_heap.h:(.text+0x76e): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage' /usr/include/c++/3.3.3/bits/stl_heap.h:(.text+0x977): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage' convert.o:/usr/include/c++/3.3.3/bits/stl_heap.h:(.text+0x97c): more undefined references to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage' follow convert.o: In function `_ZSt9sort_heapIN9__gnu_cxx17__normal_iteratorIPN3MMN7KD_TreeILj3EE7KD_NodeESt6vectorIS5_SaIS5_EEEENS4_10Compare_IDEEvT_SC_T0_': /usr/include/c++/3.3.3/bits/stl_heap.h:(.text+0x1138): undefined reference to `std::__default_alloc_template<(bool)1, (int)0>::deallocate(void*, unsigned)'
...

Right now I don't really know what else to do. Do the error messages above give any insight as to what I could do to make it work again?


reply via email to

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