Trying to compile HelloWorld.cpp

  • Thread starter Thread starter Hayato Iriumi
  • Start date Start date
H

Hayato Iriumi

I guess I'm going through initiation while I try to get into C++. I can't
even compile a Hello World app. Here is the code...

#include <iostream>
using namespace std;

void main()
{
cout << "hello";
}

When I try to compile the file "HelloWorld.cpp", I get the following error.

HelloWorld.cpp(1) : fatal error C1083: Cannot open include file: 'iostream':
No such file or directory


What am I doing wrong?
 
OK, I figured it out.
So all I did was to just follow the error messages. I registered the path
where iostream was in INCLUDE, and then things worked. I have now
HelloWorld.exe on my hard drive. Cool!
 
Back
Top