473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

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

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
Jul 22 '05 #1
2 2295
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
Jul 22 '05 #2
de******@gmail.com (derek) wrote in message news:<37**************************@posting.google. 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.
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: C. Hagedorn | last post by:
Hi, i usually write C programs under linux and i make heavily use of the superb documentation provided by the system itself (man/info pages, html documentation of the gcc package) But, now i...
2
by: b83503104 | last post by:
Hi, An old code is using stuff like #include <strstream.h> ostrstream *m_actionStream; and the compiler complained syntax error before `*' token I followed some previous posts and tried...
10
by: Aaron Gray | last post by:
Hi, I have an application that uses 'strstream' in just under half its .cc files, about 10 files. What is the replacement for 'strstream' ? What are my options for replacing it ? Many...
8
by: berkay | last post by:
hi all,i need this header file can anyone send it.thanks all.
2
by: Praveen Chandra | last post by:
Hi, I am trying to build a static library, while building the library i am getting the following error: fatal error C1189: #error : "No sstream/strstream implementation" Following is the...
5
by: nithya4u | last post by:
I am working on a c++ module, where large amount of data needs to be written to a stream and str() method is been used to assign the value of this to the char*. This produces the intended result....
5
by: David Lozzi | last post by:
Howdy, I am using ASP.Net 2.0 and Crystal Reports in VS 2005. I am taking a report, converting it to PDF then writing it out to a folder. Then I attach this file to an email and send it off....
4
by: morten44 | last post by:
here the output and my Compiler version, It is a basic example from Bjarne Stroustrups homepage, morten@Westparkstr42:~/Bjarne_Stroustrup/06_Chapter_06$ g++ dc_except.c...
5
by: perhiyar | last post by:
#include <iostream> #include <string> #include <vector> #include <strstream> using namespace std; At line 4, i am geeting error warning This file includes at least one deprecated or...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.