From: Chuck L. <ch...@fi...> - 2009-06-09 21:22:06
|
Hello, I cannot create an executable with g++ due to an ld error: g++ -o hw hw.cpp ld: 0711-317 ERROR: Undefined symbol: .std::basic_ostream<char, std::char_traits<char> >& std::operator<< <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 The only references to these errors I've seen indicate a mismatch in the compiler/library versions but I don't see where. Any advice appreciated Thanks! I installed the following from RPM: gcc-4.0.0-1 gcc-c++-4.0.0-1 libgcc-4.0.0-1 libstdc++-4.0.0-1 libstdc++-devel-4.0.0-1 >From the aix5.2 series. Source: #include <iostream> int main () { std::cout << "hello, world!"; return 0; } |