473,851 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

#include <iostream.h>

when i use #include <iostream.h> in some files
i get lots of error messages of the kind 'ambiguous symbol
this is solved when i use #include <iostream
why is that ? and can i use #include <iostream.h> in some way

examples to the error messages

c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\streamb.h(90) : error C2872: 'ios' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\streamb.h(90) : error C2872: 'ios' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(258): error C2872: 'ios' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(258): error C2872: 'ios' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(258): error C2872: 'ios' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\istream.h(64) : error C2872: 'ios' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\streamb.h(90) : error C2872: 'ios' : ambiguous symbo
could be 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(106) : ios
or 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\iosfwd(462) : std::ios
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\istream.h(139 ): error C2872: 'istream' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\istream.h(149 ): error C2872: 'istream' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(272): error C2872: 'ostream' : ambiguous symbo
could be 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(104) : ostream
or 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\iosfwd(465) : std::ostream
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(159): error C2872: 'ostream' : ambiguous symbo
could be 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(104) : ostream
or 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\iosfwd(465) : std::ostream
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(160): error C2872: 'ostream' : ambiguous symbo
could be 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(104) : ostream
or 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\iosfwd(465) : std::ostream
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(219): error C2872: 'ostream' : ambiguous symbo
could be 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(104) : ostream
or 'c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\iosfwd(465) : std::ostream
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(146): error C2872: 'streambuf' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\streamb.h(158 ): error C2872: 'streambuf' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\streamb.h(159 ): error C2872: 'streambuf' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\ios.h(290): error C2872: 'streambuf' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\istream.h(67) : error C2872: 'streambuf' : ambiguous symbo
c:\Program Files\Microsoft Visual Studio .NET\Vc7\includ e\istream.h(90) : error C2872: 'streambuf' : ambiguous symbo
Nov 17 '05 #1
1 4579
ya man wrote:
when i use #include <iostream.h> in some files ,
i get lots of error messages of the kind 'ambiguous symbol'
this is solved when i use #include <iostream>
why is that ? and can i use #include <iostream.h> in some way ?


You're trying to mix <iostream> and <iostream.h> in a single translation
unit?

Short answer: don't. Just get rid of <iostream.h>, since it's not supported
in VC7.1 (or later) anyway.

-cd
Nov 17 '05 #2

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

Similar topics

10
89426
by: John Tiger | last post by:
Can anybody have idea about the difference between #include <iostream.h> and #include <iostream>. Is later one valid statement on any compiler. I tried compiling on MSVC second statement give compilation error as #include expect filename. Anu help would be appreciated. thanx, John
11
5399
by: Charles L | last post by:
I have read that the inclusion of <fstream.h> makes the inclusion of <iostream.h> unnecessary. Is this correct? Charles L
9
2377
by: ai | last post by:
Hi , I have an application which has to read files of size few mba nd read them into array . Since i am using STL and std namespace to avoid the error error C2872: 'ifstream' : ambiguous symbol when i include <iostream.h> with std namespace and <List>
9
6184
by: nichas | last post by:
I tried to use #include<iostream> in visual C++ compiler but then it didnt work but i see this is the way it is being mentioned in C++ primer by lippman and lajoie.. where is the problem.. Do reply please.
3
3393
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt, &gt ,&ltCompany&gt to display '<', '>' and '<Company>' respectively. But is there any freeware code available which could implement the above functionality without having to use &gt,&lt and such stuff???
14
3171
by: Michael | last post by:
Since the include function is called from within a PHP script, why does the included file have to identify itself as a PHP again by enclosing its code in <?php... <?> One would assume that the PHP interpreter works like any other, that is, it first expands all the include files, and then parses the resulting text. Can anyone help with an explanation? Thanks, M. McDonnell
11
41290
by: gumboots | last post by:
Hi there guys, I've recently purchased "Sam's Teach Yourself C++ Fifth Edition" (About a week before the 6th edition came out) I'm trying to work through the book, but in trying to compile Hello World, I keep getting an error instead of it making the program. I've looked around the internet for a reason, but come up stuck. My only assumption would be that the fifth edition is upgraded to suit newer compilers? (I downloaded Visual C++...
3
2413
by: abdulmahmud | last post by:
can anybody please tell me why my program in visual C++ 2008 is not running due error #include<iostream.h>?
0
9896
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
10670
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10728
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
10352
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
7905
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
7073
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
5736
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4548
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4143
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.