Unix Programming - STL and aCC

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2006 > STL and aCC





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author STL and aCC
Torsten Mueller

2006-01-20, 8:14 am

I have a problem using the native STL implementation (this is a Rogue
Wave one) with the aCC compiler (HP ANSI C++ B3810B A.03.55) on HPUX
11. Yes, it's old. But why it does not work?

My program looks like this:

int main (int argc,char* argv[])
{
cout << endl;
return 0;
}

It crashes during the stream output operation. The stack is as
follows:

#0 0x77fa5368 in kill () from /usr/lib/libc.2
#1 0x77f42280 in raise () from /usr/lib/libc.2
#2 0x77f8291c in abort_C () from /usr/lib/libc.2
#3 0x77f82974 in abort () from /usr/lib/libc.2
#4 0x77d6483c in std::terminate () from /usr/lib/libCsup_v2.2
#5 0x77d647dc in std::terminate () from /usr/lib/libCsup_v2.2
#6 0x77d64cf4 in ThrowException () from /usr/lib/libCsup_v2.2
#7 0x77d65254 in __throw__FPvT1 () from /usr/lib/libCsup_v2.2
#8 0x77cced0c in std::locale::_C_install_facet () from /usr/lib/libstd_v2.2
#9 0x77cce92c in std::locale::_C_make_facet () from /usr/lib/libstd_v2.2
#10 0x000d8ea4 in std::basic_filebuf<char,std::char_traits<char>>::overflow
(this=0x77b5b550, __c=-1) at /opt/aCC/include_std/fstream.cc:339
#11 0x000d9778 in std::basic_filebuf<char,std::char_traits<char>>::sync
(this=0x77b5b550) at /opt/aCC/include_std/fstream.cc:572
#12 (here is main)

What's the reason for this exception? Can I something do to avoid
this? The STLPort library I use before does not show this problem.

T.M.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com