473,499 Members | 1,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS.NET 2003: Where is class ios_base defined?!

After including sstream the compiler reports hundreds of errors. They are
all caused by a missing ios_base definition. When I search for ios_base in
the installation directory of VS.NET 2003 I find only seven files with the
..cpp ending. So where is ios_base defined?!

Boris
Nov 28 '05 #1
3 1126
"Boris" <bo***@gtemail.net> wrote in message
news:e7*************@TK2MSFTNGP15.phx.gbl
After including sstream the compiler reports hundreds of errors.
This program compiles for me with no problems:

#include <sstream>

int main()
{
std::stringstream s;
s << 1;
return 0;
}

What errors do you get?
They
are all caused by a missing ios_base definition. When I search for
ios_base in the installation directory of VS.NET 2003 I find only
seven files with the .cpp ending. So where is ios_base defined?!


In <xiosbase>
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Nov 28 '05 #2
"Boris" <bo***@gtemail.net> wrote in message
news:e7*************@TK2MSFTNGP15.phx.gbl...
After including sstream the compiler reports hundreds of errors. They are
all caused by a missing ios_base definition. When I search for ios_base in
the installation directory of VS.NET 2003 I find only seven files with the
.cpp ending. So where is ios_base defined?!


In <xiosbase>. Are you looking for ios_base or std::ios_base?

P.J. Plauger
Dinkumware, Ltd.
http://www.dinkumware.com
Nov 28 '05 #3

"Igor Tandetnik" <it********@mvps.org>,
news:OY**************@tk2msftngp13.phx.gbl...
"Boris" <bo***@gtemail.net> wrote in message
news:e7*************@TK2MSFTNGP15.phx.gbl
After including sstream the compiler reports hundreds of errors.
This program compiles for me with no problems:

#include <sstream>

int main()
{
std::stringstream s;
s << 1;
return 0;
}

What errors do you get?


I haven't had any problems with sstream before. That's why I wondered where
the hundreds of compile time errors came from. Meanwhile I could solve the
problem by rearranging the order of included project header files. I don't
know what's causing the compile time errors in the other header files and
don't have time in the moment to fix other developers' code but for now it
works.

Boris
[...]

Nov 28 '05 #4

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

Similar topics

8
2514
by: jose luis fernandez diaz | last post by:
Hi, I am reading Stroustrup's book 'C++ Programming Language'. In the 10.4.9 section (Nonlocal Store) he says: "A variable defined outside any function (that is global, namespace, and class...
8
2086
by: Ares Lagae | last post by:
When adopting the coding style of the standard C++ library, you often run into naming problems because class names are lower case, and member functions do not have get/set prefixes. For example:...
4
1941
by: David | last post by:
Hello, I want to write a simple logging class. But when I instantiate the logger with Logger::logger log("log.log"); I get a "Bus Error - core dumped". Can anybody help? Thanks beforehand,...
5
2162
by: Riku Jarvinen | last post by:
Hi everyone, I asked another question regarding this same subject about a week ago. See thread: ...
6
9998
by: Geoffrey S. Knauth | last post by:
It's been a while since I programmed in C++, and the language sure has changed. Usually I can figure out why something no longer compiles, but this time I'm stumped. A friend has a problem he...
7
839
by: DaVinci | last post by:
//error happen even when there existe a a.txt file #include<fstream> #include <string> #include <iostream> using std::string; using std::fstream; int main() { string s = "a.txt"; fstream...
3
16332
by: Joseph Lu | last post by:
Hi,all I have code like the following lines, but when I compile this program I got a: error C2563 : 'ios' : is not a class or namespace name! //--Code starts here #include <iostream> #include...
12
2662
by: Kira Yamato | last post by:
I've posted this in another thread, but I suppose I should've started a new thread for it instead. I cannot get the following short program to compile under g++: #include <iostream> #include...
13
2592
by: ishakarthika | last post by:
how can i compare the a private variable of a class and a value in the column of a text file. there is a syntax error in my code while comparing. senario is i am getting bus details like busno,...
0
7180
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
7229
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...
1
6905
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
5485
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
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.