This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]