Hi,
I am facing a strange problem with the STL maps..
I am using HPUX machine PA RISC one..!
The C++ compiler version is aCC: HP ANSI C++ B3910B A.03.37.
while *compilation *I am adding this flag, */opt/aCC/bin/aCC -AA -mt *and
while *linking *I am linking *-lstd_v2 -lCsup_v2 -lm -lclntsh *( in this
order specifically)...
Can you please tell me why this strange problem coming..?
In the code, I am using
class abc;
def::ghi ()
{
map def;
string strVar = "ashwin";
def[strVar] = new abc(); --> constructor of class abc is called
successfully... and when comes the assignment means the insertion then it is
failing...!
}
Call stack where it gives the BUS Error Unknown signal goes like this :----
::_C_insert ()
::insert () a
::operator[]+0x6c ()
def::ghi ()
--- so on and on I have tried with both 32 bit and 64 bit..!
Waiting for your reply..
Thanks & Regards,
Ashwin Mittal