|
-
Jan 25th, 2011, 01:44 PM
#1
Thread Starter
Addicted Member
can't find iostream.h...
Hi. I have a very simple hello world code:
Code:
#include "iostream.h"
void main()
{
cout << "Hello world" << endl;
}
This is a simple C++ console application written in Visual Studio 2005.
fatal error: can't find "iostream.h" file.
I thought that when I first started a new project, Visual Studio 2005 had already pointed to the Visual studio folder, by default. Am I wrong? If not then (for bigger project) I would have to copy many header files to my own include folder. I should not be like that. I am correct?
What is the solution? Thank you.
-
Jan 26th, 2011, 10:06 AM
#2
Hyperactive Member
Re: can't find iostream.h...
 Originally Posted by dtvonly
Hi. I have a very simple hello world code:
Code:
#include "iostream.h"
void main()
{
cout << "Hello world" << endl;
}
This is a simple C++ console application written in Visual Studio 2005.
fatal error: can't find "iostream.h" file.
I thought that when I first started a new project, Visual Studio 2005 had already pointed to the Visual studio folder, by default. Am I wrong? If not then (for bigger project) I would have to copy many header files to my own include folder. I should not be like that. I am correct?
What is the solution? Thank you.
Why haven't you coded as #include <iostream.h> ? are you trying to include a file?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|