The problem after install gcc on AIX 5.3
I download 5 rpm packages from
IBM AIX Toolbox Download Page - Alphabetical Listing and install them.
rpm -ivh gcc-4.0.0-1.aix5.3.ppc.rpm
rpm -ivh libgcc-4.0.0-1.aix5.3.ppc.rpm
rpm -ivh libstdcplusplus-4.0.0-1.aix5.3.ppc.rpm
rpm -ivh libstdcplusplus-devel-4.0.0-1.aix5.3.ppc.rpm
rpm -ivh gcc-cplusplus-4.0.0-1.aix5.3.ppc.rpm
But when I compile a cpp file like this :
#include <iostream>
using namespace std;
int main(int argc, char **argv)
{
cout<<"Hello\n";
return 0;
}
it returns like :
ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std
erator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
What I can do to solve this problem? Thanks a lot!