473,624 Members | 2,240 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 1134
"Boris" <bo***@gtemail. net> wrote in message
news:e7******** *****@TK2MSFTNG P15.phx.gbl
After including sstream the compiler reports hundreds of errors.
This program compiles for me with no problems:

#include <sstream>

int main()
{
std::stringstre am 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******** *****@TK2MSFTNG P15.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********@mvp s.org>,
news:OY******** ******@tk2msftn gp13.phx.gbl...
"Boris" <bo***@gtemail. net> wrote in message
news:e7******** *****@TK2MSFTNG P15.phx.gbl
After including sstream the compiler reports hundreds of errors.
This program compiles for me with no problems:

#include <sstream>

int main()
{
std::stringstre am 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
2530
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 static variables) is initializated (constructed) before main is invoked . . ." .. . .
8
2098
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: - The class stringstream has a member function "string stringstream::str()". It would be more logical to name it "string stringstream::string()". - The class ios_base has a member function "locale ios_base::getloc()". It would be more logical to...
4
1948
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, David This is my logger.hpp file (I tried it with .h, too.)
5
2172
by: Riku Jarvinen | last post by:
Hi everyone, I asked another question regarding this same subject about a week ago. See thread: http://groups.google.fi/group/comp.lang.c++/browse_frm/thread/cc57b579d6832732/530bae667a479add#530bae667a479add So, the basic idea is to have a compact logger class which can be used like the std::cout stream and add extra functionality to it (line numbering, some output counters etc.).
6
10020
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 hoped I could solve, and I couldn't. Some code he's using, written in 1999, that compiled fine in 1999, no longer does in 2006 with g++ 4. This little bit of code: SimS::SimS (ostream &s) {
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 file(s.c_str(),std::ios_base::in | std::ios_base::app);
3
16355
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 <fstream> #include <cstdlib> #include <iomanip>
12
2684
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 <fstream> #include <iterator> #include <algorithm>
13
2602
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, source , destination,type of bus, price/head . I should compare the busno which i get through object to the bus no which is present in a .txt file. and contents in the text file is as the format below. |1488|xxx|uuuu|A/c|150....
0
8242
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8681
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8341
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8488
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6112
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4183
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1793
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1488
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.