This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

`ostringstream' undeclared (first use this function)




Hi,

I have using namespace std;
But I still receive `ostringstream' undeclared (first use this function)

I suspect I have to use some other object in GNU but just don't know which.

I use ostringstream for format conversion and format display:

        unsigned long lr = f;

        ostringstream oWork;

        oWork.fill('0');
        oWork.setf(ios_base::hex, ios_base::basefield);
        oWork.width(8);
        oWork << lr;
        return oWork.str();

Can anyone help me?

Thanks

Tim

__________________________________________________________________________
The information contained in this email communication may be confidential. You
should only read, disclose, re-transmit, copy, distribute, act in reliance on or
commercialise the information if you are authorised to do so. If you are not the
intended recipient of this email communication, please notify us immediately by
email to NABpost@nag.national.com.au or reply by email direct to the sender
and then destroy any electronic or paper copy of this message.  Any views
expressed in this email communication are those of the individual sender, except
where the sender specifically states them to be the views of a member of the
National Australia Bank Group of companies.  The National Australia Bank Group
of companies does not represent, warrant or guarantee that the integrity of this
communication has been maintained nor that the communication is free of errors,
virus or interference.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]