This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
STL help
- To: libstdc++ at gcc dot gnu dot org
- Subject: STL help
- From: "krish K" <kri1233 at rediffmail dot com>
- Date: 8 Nov 2001 21:33:05 -0000
- Reply-To: "krish K" <kri1233 at rediffmail dot com>
Hello all,
I try executing the following program (which is using STL) under
linux by using gcc version 2.95.3:
#include <vector.h>
#include <iostream.h>
#include <algo.h>
#include <stdlib.h>
int main()
{
vector<char> cvec;
cvec.insert(cvec.begin(), 50, '/');
fill(cvec.begin()+1, cvec.end()-1, '-');
copy(cvec.begin(), cvec.end(), ostream_iterator<char>(cout));
cout <<endl;
return 0;
}
and it generates 'killed by signal 7' error during execution at 'cvec.insert' step.
Any help?