Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > cannot find strstream in /usr/include/c++/3.3.3

Reply
Thread Tools

cannot find strstream in /usr/include/c++/3.3.3

 
 
derek
Guest
Posts: n/a
 
      09-28-2004
Hi,

I'm trying to compile someone's code which uses ostrstream. I know
it's declared in file strstream, but I can't find this file in the
/usr/include/c++/3.3.3 directory. There is a file called sstream, but
it doesn't work when I include sstream.

Do you guys know what's wrong?

Thanks in advance.
Derek
 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      09-28-2004
derek wrote:
> I'm trying to compile someone's code which uses ostrstream. I know
> it's declared in file strstream, but I can't find this file in the
> /usr/include/c++/3.3.3 directory. There is a file called sstream, but
> it doesn't work when I include sstream.
>
> Do you guys know what's wrong?


Try switching to new ones instead of old string streams. The old ones
have been deprecated. Actually, deprecation doesn't necessarily mean
obsoleteness. You could ask in gnu.g++.help for more information on
where 'ostrstream' has gone.

V
 
Reply With Quote
 
 
 
 
Old Wolf
Guest
Posts: n/a
 
      09-29-2004
http://www.velocityreviews.com/forums/(E-Mail Removed) (derek) wrote in message news:<(E-Mail Removed). com>...
> Hi,
>
> I'm trying to compile someone's code which uses ostrstream. I know
> it's declared in file strstream, but I can't find this file in the
> /usr/include/c++/3.3.3 directory. There is a file called sstream, but
> it doesn't work when I include sstream.



There is "strstream" in the subdirectory "backward". Just include
it normally:

#include <strstream>

and everything will work.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
strstream and ostrstream with new g++ b83503104@yahoo.com C++ 2 01-11-2005 09:51 AM
use of strstream object of standard lib News For Mohan C++ 1 08-10-2004 02:35 PM
Queries about strstream.h vishnu mahendra C++ 3 04-11-2004 04:06 PM
Use of strstream.h? vishnu mahendra C++ 2 04-06-2004 09:18 PM
strstream question Bpb C++ 1 09-23-2003 07:30 PM



Advertisments