I have some problems to link a simple hello world program using
g++ (version 3.2.3 or 3.3) and dinkumware 402.
//hallo world...
#include <iostream>
main () {
std::cout << "bla" << std::endl;
}
// the linking is something of that kind...
g++ -I./dinkumware_co/include ./libgcc_v3.2_c99_standard.a test.cpp
then I get:
/usr/tmp/cct8tLwS.o: In function
`__static_initialization_and_destruction_0(int, int)':
/usr/tmp/cct8tLwS.o(.text+0x74): undefined reference to
`std::_Winit::_Winit[in-charge]()'
/usr/tmp/cct8tLwS.o(.text+0x8f): undefined reference to
`std::_Winit::~_Winit
[in-charge]()'
/usr/tmp/cct8tLwS.o: In function `std::basic_ios<char,
std::char_traits<char>
::clear(std::_Iosb<int>::_Iostate, bool)':
/usr/tmp/cct8tLwS.o(.gnu.linkonce.t._ZNSt9basic_iosIcSt11ch ar_traitsIcEE5clearENSt5_IosbIiE8_IostateEb+0x3c):
undefined reference to `std::ios_base::clear(std::_Iosb<int>::_Iostate,
bool)'
/usr/tmp/cct8tLwS.o: In function `std::ctype<char> const&
std::use_facet<std::ctype<char> >(std::locale const&)':
/usr/tmp/cct8tLwS.o(.gnu.linkonce.t._ZSt9use_facetISt5ctype IcEERKT_RKSt6locale+0x3f):
undefined reference to `std::locale::_Getfacet(unsigned) const'
/usr/tmp/cct8tLwS.o(.gnu.linkonce.t._ZSt9use_facetISt5ctype IcEERKT_RKSt6locale+0xee):
undefined reference to `std::locale::facet::_Register()'
/usr/tmp/cct8tLwS.o: In function `std::locale::id::operator unsigned()':
/usr/tmp/cct8tLwS.o(.gnu.linkonce.t._ZNSt6locale2idcvjEv+0x 2e): undefined
reference to `std::locale::id::_Id_cnt'
/usr/tmp/cct8tLwS.o(.gnu.linkonce.t._ZNSt6locale2idcvjEv+0x 33): undefined
reference to `std::locale::id::_Id_cnt'
/usr/tmp/cct8tLwS.o: In function `std::ctype<char>::ctype[in-charge](short
const*, bool, unsigned)':
/usr/tmp/cct8tLwS.o(.gnu.linkonce.t._ZNSt5ctypeIcEC1EPKsbj+ 0x37): undefined
reference to `std::_Locinfo::_Locinfo[in-charge](char const*)'
/usr/tmp/cct8tLwS.o(.gnu.linkonce.t._ZNSt5ctypeIcEC1EPKsbj+ 0x5c): undefined
reference to `std::_Locinfo::~_Locinfo [in-charge]()'
/usr/tmp/cct8tLwS.o(.gnu.linkonce.t._ZNSt5ctypeIcEC1EPKsbj+ 0x6c): undefined
reference to `std::_Locinfo::~_Locinfo [in-charge]()'
collect2: ld returned 1 exit status