A
avidamani
Hi,
I have a c++ application compiled using
Compaq C++ V6.5-014 for Compaq Tru64 UNIX V5.1A (Rev. 1885)
Compiler Driver V6.5-014 (cxx) cxx Driver
The problem is that the application is having unaligned access error
and is core dumping whenever I use stringstream to convert integer or
long to string.
std::stringstream x;
int y = 1234;
x << y;
But if I use the following code, i.e. initialize the stringstream
object using the constructor, i do not face the coree dump:
std::stringstream x("");
int y = 1234;
x << y;
Can someone help me out in resolving theissue in the first code.
Thanks in advance.
- Avinash
I have a c++ application compiled using
Compaq C++ V6.5-014 for Compaq Tru64 UNIX V5.1A (Rev. 1885)
Compiler Driver V6.5-014 (cxx) cxx Driver
The problem is that the application is having unaligned access error
and is core dumping whenever I use stringstream to convert integer or
long to string.
std::stringstream x;
int y = 1234;
x << y;
But if I use the following code, i.e. initialize the stringstream
object using the constructor, i do not face the coree dump:
std::stringstream x("");
int y = 1234;
x << y;
Can someone help me out in resolving theissue in the first code.
Thanks in advance.
- Avinash