What is wrong with this ostringstream code

1
2
3
4
void platformDependent::printAllLocation ()
{
std::ostringstream oss;
}


I am simply trying to emulate http://en.allexperts.com/q/C-1040/2008/1/Converting-double-string.htm

Yet I got an error
Error 1 error C2079: 'oss' uses undefined class 'std::basic_ostringstream<_Elem,_Traits,_Alloc>' \\work\c\business\fromwork\currentprojects\program\library\cpp\locationBasedAds\platformDependent.cpp 38 locationBasedAds
Are you doing #include <sstream> ? I'm not sure but I think that's what needs to be included...
I included iostream

Where do I can find that ostringstream requires sstream?
well, I dont know where you can find that it requires it, but it does. iostream doesnt hold the stringstream classes. sstream does.
Last edited on
Topic archived. No new replies allowed.