Can't use sstream in Dev C++

glugglug

Diamond Member
Jun 9, 2002
5,340
1
81
What is failing, the #include statement or when you try to instantiate a stringstream template?
 

justinoh

Member
Nov 15, 2001
134
0
0
I'm not sure what G++ version does it come with.

Yes, the include statement is failing. It returns this error: sstream: no such file or directory.

I've tried installing the new MinGW but it only brought up more errors. Is there a simple solution to this?
 

glugglug

Diamond Member
Jun 9, 2002
5,340
1
81
The file has a .cpp extension or just .c extension? Some compilers will act like a classic C compiler rather than C++ if the extension doesn't indicate to do otherwise.
 

justinoh

Member
Nov 15, 2001
134
0
0
Hey glugglug,

I downloaded several other versions of Dev C++ and found one that works fine. I didn't wanna mess with copying the header files and whatnot, it just gave me more errors.

Thanks for your time!