Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hey guys please help cause I am stumped (iostream.h) not found???!!

Status
Not open for further replies.

marine88

Technical User
Dec 20, 2002
7
CA
I am using Microsoft eMbedded Visual C++ and Anytime I compile my project it says iostream.h wasnt found. Im not sure if it does this in other occasions but can anyone please tell me why it shows this to me?
 
Sorry if im the biggest "beginner" there is , but we all gotta start somewhere. Thanks for your help
 
To add to BryanY's suggestion, iostream.h is the old style C++ I/O. Most of the later compilers support STL which use iostream in std namespace.

If you use iostream.h on VS.net, you will get deprecation warnings.
 
ok , im still not getting anywhere. Can you explain this namespace std thing? i had already tried using just #include<iostream> but i think im missing this namespace thing.
 
Namespaces are just a scoping tool to avoid name clashes. By saying namespace std, it means that if it cannot find a definition in the current namespace, it will also look for it in std namespace.

Just wondering: have you got the include paths set up correctly? Look at Tools/Options/Directories/Include. Does iostream exist in one of the directories listed? You should have at least VC98\include and VC98\atl\include
 
So how do i put the namespace on? is it just inserting what u said into the code like so: ?

#include <iostream>
namespace std

...
...

Is that the correct format? Or do you use namespace another way.
 
it should be exactly like this...


#include<iostream>
using namespace std;


 
Thanks for your help but...

Im not sure what is wrong with my eMbedded c++ but i cannot fix it and this is really getting on my nerves. I have done everything you guys have suggested but still nothing is happening. it still wont find iostream! If anyoen has had this problem with eMbedded please tell me how to fix it.
Until then i will use dev++ , that seem to be working good.
Thanks Marine

- - - - - - - - - - - - - - - - - - - - - - - - - - - -

The basis of life , is death and destruction, so just teach me c++ while im here.
 
Do a find in windows. See if you can pick up iostream or iostream.h from anywhere. Say the directory is C:\Program Files\Microsoft Visual Studio\VC98\include.

Start up VC++. Click on Tools/Options. A dialog will pop up. Click on Directories, select include in the combo. Make sure that this directory path is one of those listed in the listbox.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top