problem with strstream

Colin J. Morningstar colin@su3.ucsd.edu
Thu Jun 3 12:44:00 GMT 1999


Hi,

   I downloaded the rpm's for egcs-1.1.2-13, including the libraries and
the c++ and fortran support.  The following little program compiles
fine using g++ (no flags), but gives a segmentation fault when executed.
Please help!  My system is  Linux RedHat 5.2 on a pentium II.

Colin Morningstar (cmorning@ucsd.edu)

#include <strstream.h>

void double_to_string(double x, int precision)
{
 ostrstream ch;
}

main()
{
double Mval=5.1;
double_to_string(Mval,3);
return 0;                                // successful completion
}




More information about the Gcc mailing list