Hi,
Simple "Hello World" program doesn't link with g++ 4.0.0 on AIX 5.3...
vcstest01-root /tmp # g++ test.cxx
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_trai
ts<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, s
td::char_traits<char> >&, char const*)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
It seems that the libstdc++ library just doesn't contain these symbols.
Program is as follows:
vcstest01-root /tmp # cat test.cxx
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
I'm using the following rpms from the AIX toolbox webpage:
gcc-4.0.0-1
libstdc++-4.0.0-1
libstdc++-devel-4.0.0-1
gcc-c++-4.0.0-1
My only workaround at the moment it to compile with -static.
oslevel -s is 5300-05-02