I tried doing a simple hello world in C++ as I'm going to be using it in school in about a week. Why can't I compile this properly?
c:\Users\user\Desktop>cl ram.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
ram.cpp
ram.cpp(1) : fatal error C1083: Cannot open include file: 'iostream.h': No such
file or directory
c:\Users\user\Desktop>
Here is ram.cpp
#include <iostream>
int main()
{
cout << "Hello World!";
return 0;
}
EDIT:
I updated my code to
#include <iostream>
using namespace std;
int main(void)
{
cout << "Hello World!";
return 0;
}
And still get this error
ram.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled. S
pecify /EHsc
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
/out:ram.exe
ram.obj