I am seeing some strange behavior with HP-UX 11.11 and aCC A.3.xx compilers. Here is the test code: #include #include #include using std::cout; using std::endl; using std::flush; int main() { long lng1 = 1000; long lng2 = 2000; cout << "lng1 is " << lng1 << endl; cout << "lng2 is " << lng2 << endl; // cout << "lng2 is " << ltoa(lng2) << endl; std::string s = std::string("lng1 = ")+ltoa(lng1)+", lng2 = "+ltoa(lng2); cout<