[LC++]<sstream>
Roberto Diaz
roberto at vivaldi.dhis.org
Thu Dec 13 06:43:04 UTC 2001
Hi!
I am trying to implement a single stream to a string..
Following Stroustrup it says ostringstream is declared in <sstream>, in my
system (debian potato) I find the following error:
#include <sstream>
#include <string>
std::string intToString (int a)
{
std::ostringstream o;
if (o << a)
return o.str (); //
return "error"; // we still havent an error handler
}
g++ -c -ggdb -o bwwidget.o bwwidget.cc
bwwidget.cc:9: sstream: No such file or directory
and really I find I can not find any file in my sistem called sstream.. (I have
all the rest).
Whats happening? :??
--
Saludos
Roberto Díaz <roberto at vivaldi.dhis.org>
PLEASE HELP SAVE faqs.org!
http://www.faqs.org/save_faqs-org.html
More information about the tuxCPProgramming
mailing list