all groups > visual c > april 2004 >
You're in the

visual c

group:

Trying to compile HelloWorld.cpp



Trying to compile HelloWorld.cpp Hayato Iriumi
4/28/2004 11:02:24 PM
visual c: 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?

Re: Trying to compile HelloWorld.cpp Hayato Iriumi
4/28/2004 11:21:19 PM
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!


[quoted text, click to view]

AddThis Social Bookmark Button