473,396 Members | 1,894 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,396 software developers and data experts.

works fine using gcc

In my program I
#include <ostream>
#include <iostream>//cout
#include <strstream>
---------------------------------
I am using vcdev 6 and getting the following error
c:\program files\microsoft visual studio\vc98\include\strstream(87)
'ostream' : base class undefined
any ideas why??
Could it be that I might have a
#include <fstream.h>
somewhere
which is obsolete,and had a warning from gcc?
Jul 22 '05 #1
2 1283
"deodiaus" <de******@my-deja.com> wrote...
In my program I
#include <ostream>
#include <iostream>//cout
#include <strstream>
---------------------------------
I am using vcdev 6 and getting the following error
c:\program files\microsoft visual studio\vc98\include\strstream(87)
'ostream' : base class undefined
any ideas why??
Could it be that I might have a
#include <fstream.h>
somewhere
which is obsolete,and had a warning from gcc?


Perhaps you need to bring 'ostream' name to the global namespace
before including the old header <strstream>. Otherwise, try to
use <sstream>, it's newer and therefore better.

Victor
Jul 22 '05 #2
On Wed, 21 Jan 2004 13:37:22 -0800, deodiaus wrote:
In my program I
#include <ostream>
#include <iostream>//cout
#include <strstream>
---------------------------------
I am using vcdev 6 and getting the following error
c:\program files\microsoft visual studio\vc98\include\strstream(87)
'ostream' : base class undefined
any ideas why??
Could it be that I might have a
#include <fstream.h>
somewhere
which is obsolete,and had a warning from gcc?


Yes, this is your problem. Some versions of MSVC have big problems mixing
old and new streams. It is a bad idea anyhow, so don't do that(tm).

HTH,
M4

Jul 22 '05 #3

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

Similar topics

1
by: Gerd Güldenast | last post by:
Hi, I am having a problem with a replication over a Modem-Connection, which works fine over LAN. Has anyone experienced this problem before? Settings are: 2 SQL Servers 2000, SP3 on Windows...
3
by: Jason S | last post by:
Hello Group, I am just about tearing my hair out with this one and thought someone may have some insight. I have a transform that wasn't working so I grabbed the nearest debugger (xselerator)...
6
by: Ook | last post by:
I've given up on MySQL for now - and just built a basic c# dotnet asp web app. It works. However, if I try to view the app in a non-Microsoft browser, it doesn't do anything. Specifically, I'm...
10
by: Guadala Harry | last post by:
I have a modal dialog that currently does all of the following except item 4. 1. lets users select a graphic from a list of thumbnails (and when selected, displays the full-size image in a...
2
by: Rico | last post by:
Hello, I have a web application that I developed in ASP.NET on one machine and I'm trying to deploy it on a Windows 2003 Server. The application runs fine on the development workstation...
3
by: mo | last post by:
I have an application that uses Reporting Services. When the user chooses to print a report, they are taken to a window that allows them to fill in parameters for the report. They then click a...
11
by: Rolf Welskes | last post by:
Hello, the problem seems to be complex and is in all developments of web-controls which uses own TypeConverter. For this I have here a simple demo-program of the problem: The Control-code: A...
2
by: =?Utf-8?B?RGlmZmlkZW50?= | last post by:
Hello All, I am trying to offer "Print" functionality using an HTML button with the help of "window.print()" This button works fine in Firefox but not in IE7. I am dumping the entire content...
13
by: Stever1975 | last post by:
I'm working on something similiar to a shopping cart item page. There is a table of items. Each item has an image, a textbox for the qty and an image for the add button. When the add image is...
0
by: thrash242 | last post by:
I have a fairly simple C++ program that uses the windows port of PDCurses, which I built and installed correctly (as far as I know). When I do a build (using make) from Eclipse, I get several...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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,...

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.