This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
- From: "dougmencken at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2010 17:18:42 -0000
- Subject: [Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
- References: <bug-43911-18266@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from dougmencken at gmail dot com 2010-04-27 17:18 -------
I do not compile c++ sources with gcc. Yes, I mistyped gcc instead of g++ in
the first message, sorry.
$ g++ test.c\+\+
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../libstdc++.so: undefined
reference to `_Unwind_GetIPInfo'
collect2: ld returned 1 exit status
$ gcc test.c\+\+
/tmp/ccfXg3T4.o: In function `main':
test.c++:(.text+0x16): undefined reference to `std::cout'
test.c++:(.text+0x1a): undefined reference to `std::cout'
test.c++:(.text+0x24): 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*)'
test.c++:(.text+0x32): 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> >&)'
test.c++:(.text+0x36): 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> >&)'
test.c++:(.text+0x38): undefined reference to `std::basic_ostream<char,
std::char_traits<char> >::operator<<(std::basic_ostream<char,
std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char>
>&))'
/tmp/ccfXg3T4.o: In function `__static_initialization_and_destruction_0(int,
int)':
test.c++:(.text+0xa0): undefined reference to `std::ios_base::Init::Init()'
test.c++:(.text+0xcc): undefined reference to `std::ios_base::Init::~Init()'
collect2: ld returned 1 exit status
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911