Bug#202587: g++-3.3: g++ doesn't link libstdc++ by default
Package: g++-3.3
Version: 1:3.3.1-0pre0
Severity: important
Hi!
g++ doesn't link libstdc++ by default.
jk@forward:~/tmp/3% cat main.cc
#include <iostream>
int main()
{
std::cerr << std::endl;
}
jk@forward:~/tmp/3% g++ main.cc
/tmp/cc2z4Jba.o(.text+0x14): 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/cc2z4Jba.o(.text+0x19): In function `main':
: undefined reference to `std::cerr'
/tmp/cc2z4Jba.o(.text+0x1e): In function `main':
: 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/cc2z4Jba.o(.text+0x4a): In function `__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::Init[in-charge]()'
/tmp/cc2z4Jba.o(.text+0x79): In function `__tcf_0':
: undefined reference to `std::ios_base::Init::~Init [in-charge]()'
/tmp/cc2z4Jba.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
Alexander Kogan
Institute of Applied Physics
Russian Academy of Sciences
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux forward 2.4.20-forward #1 SMP Птн Янв 24 16:19:36 MSK 2003 i686
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R
Versions of packages g++-3.3 depends on:
ii gcc-3.3 1:3.3.1-0pre0 The GNU C compiler
ii gcc-3.3-base 1:3.3.1-0pre0 The GNU Compiler Collection (base
ii libc6 2.3.1-17 GNU C Library: Shared libraries an
ii libstdc++5-3.3-dev 1:3.3.1-0pre0 The GNU Standard C++ Library v3 (d
-- no debconf information
Reply to: