gdb kills ofstreams
Shane McDaniel
shanem@ll.mit.edu
Fri Feb 8 08:17:00 GMT 2002
On Fri, 8 Feb 2002, Andrew Cagney wrote:
> > I have a program that uses ofstreams. My program works fine when ran from
> > the command line, but if I use gdb to run the program my ofstream files
> > aren't created. This is very frustrating and has cost me a couple hours
> > of work.
> >
> > Is there an explanation for this behavior?
>
>
> The problem could be anywhere. Can I suggest providing a brief
> descripion of what ofstream is and also mention your host and target.
>
> Andrew
I am on Solaris 2.8. ofstream is the standard c++ way of writing out to
a file. I am compiling with g++ 2.95.3 and using gdb 5.1.
-shane
More information about the Gdb
mailing list