From: Michael M. <mic...@is...> - 2007-10-26 11:02:55
|
Dear all I am experiencing problems with the gnu c++ compiler under aix using the following versions: # uname -a AIX istcluster1 3 5 0001D92AD300 # rpm -qf /usr/bin/g++ gcc-c++-4.0.0-1 The problem is that I am not able to compile a simple hello world program using the gnu g++ compiler: # cat conf.C #ifdef __cplusplus extern "C" void std::exit (int); using std::exit; #endif #define OMPI_CXX "g++" /* end confdefs.h. */ #include <string> int main () { std::string foo = "Hello, world" ; return 0; } # g++ conf.C ld: 0711-317 ERROR: Undefined symbol: .std::allocator<char>::allocator() ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) ld: 0711-317 ERROR: Undefined symbol: .std::allocator<char>::~allocator() ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status tried to fix this but run out of ideas. Any suggestions? Regards, Michael Marti. -- ------------------------------------------------------------------------ ---- Michael Marti Centro de Fisica dos Plasmas Instituto Superior Tecnico Av. Rovisco Pais 1049-001 Lisboa Portugal Tel: +351 218 419 379 Fax: +351 218 464 455 Mobile: +351 968 434 327 ------------------------------------------------------------------------ ---- |