When I compile codes mixed with C++ and Fortran, I have got a bunch
of error messages including the followings:
......:
undefined reference to `std::_String_base::_Xran() const'
......:
undefined reference to `std::_String_base::_Xlen() const'
.....: In function `__sti__$E':
: undefined reference to `std::_Winit::_Winit[in-charge]()'
BasicArraysNdata.o(.gnu.linkonce.t._ZNSs5_GrowEjb+0x29): In function
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_Grow(unsigned, bool)':
The following versions are used for comilation: (note: only fortran
routines use MPI functions)
icc 8.0 on Linux RH9 (or Red Hat Linux 3.2.2-5)
ifort 8.0
lam-7.0.7
By the way, if I compile the same codes without MPI functions,
it gives no such error and runs fine.
Could someone help me on this problem?
Thanks,
Hwanho Kim
|