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

How to get rid of the fatal error about iostream

Hi,

I just want to using a console application in the .net enviroment.

Before the main(), I using the
#include "iostream.h"

but the .net tell me:
c:\project\console\console\console.cpp(11): fatal error C1083: Cannot open
include file: 'iostream.h': No such file or directory

By the way, I want to compile the MS's program: ADOXCreateDatabaseX.cpp
about ADO.

The .net always told me:
c:\project\console\console\Debug\msado15.tlh(2374) : error C2059: syntax
error : '-'
c:\project\console\console\Debug\msado15.tlh(2374) : error C2238: unexpected
token(s) preceding ';'
What wrong with .net, if using the VC6.0, there are no those problem.
Who can help me?

Thanks in advanced,

Bill
Nov 16 '05 #1
1 4491
Bill Sun wrote:
Hi,

I just want to using a console application in the .net enviroment.

Before the main(), I using the
#include "iostream.h"

but the .net tell me:
c:\project\console\console\console.cpp(11): fatal error C1083: Cannot
open include file: 'iostream.h': No such file or directory

By the way, I want to compile the MS's program:
ADOXCreateDatabaseX.cpp about ADO.

The .net always told me:
c:\project\console\console\Debug\msado15.tlh(2374) : error C2059:
syntax error : '-'
c:\project\console\console\Debug\msado15.tlh(2374) : error C2238:
unexpected token(s) preceding ';'
What wrong with .net, if using the VC6.0, there are no those problem.
Who can help me?


You need to use <iostream> (no .h).

Background: VC has supported two different versions of IOStreams for
several years. "Classic IOStreams", as implemented in <iostream.h> (etc),
and "Standard IOStreams", as implemented in <iostream> (etc). Note the lack
of the .h in the standard iostreams header file names.

VC7.0 deprecated the "classic IOStreams" and VC7.1 dropped support for
"classic IOstreams" altogether.

Frequently it's as simple as replacing #include <iostream.h> with #include
<iostream> and adding a 'using namespace std;', but depending on exactly
what you're doing with streams, more work may be necessary.

Check any up to date C++ programming book for basics of Standard IOStreams
programming (e.g. "Accelerated C++" by Andrew Koenig and Barbara Moo). If
you need the ultimate reference, look for "Standard C++ IOStreams and
Locales" by Angelika Langer & Klaus Kreft.

-cd
Nov 16 '05 #2

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

Similar topics

8
by: Tim Tyler | last post by:
I'm getting fatal errors when executing code - and my error handler is failing to trap them - so I get no stack backtrace :-( The error I am getting is: "Fatal error: Call to a member function...
1
by: Steve | last post by:
I installed Visual Studio .NET from a developers pack, and when I try to compile anything in C++ it gives me the error "Fatal error: C1083" saying the file is not there. The file I am calling is...
1
by: Tim | last post by:
I am just creating a hellow world program and it gave me these errors. can you help me out how to resolve this? Thanks, Tim #include <iostream> using namespace std;
0
by: JimmyS | last post by:
I am getting this error .. c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stl_alloc.h(305) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701)...
2
by: Itjalve | last post by:
This gives me a fatal error. I'm using .NET VC7.1 and made a win32 consol app, I have no problems with VC6. Debug build. I have removed nearly all my code this is whats left. From the beginning...
6
by: Steve Crawford | last post by:
I've started seeing the following in my logs: FATAL: invalid frontend message type 8 I searched back over a month and there are 5 instances of this error of which 4 are in the last 24 hours. ...
10
by: LZXIA | last post by:
Compiling... overlaod.cpp d:\vc work\cpp\think_in_cpp\chapter10\overlaod.cpp(17) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) Please choose the Technical...
2
by: jsl | last post by:
i have converted my project from vc++ 6.0 to visual studio 2005, then the "fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory" is coming... what can i use in visual...
2
by: ichabod079 | last post by:
I'm new to C++ and I am struggling with the whole separate function thing and I am so frustrated right now it's not even funny. What i'm supposed to do is this code and I ask for the 1st number and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.