GCC
GCC

Reputation: 1

Newbie to C++; visual studio 2012 include path

I installed VS2012 today and started learning C++.

I wrote a Hello World program with #include <iostream.h>.

On build I get the error; C1083: Can not open include file... I believe this is an include path problem.

I tried editing the Include Directories in the VC++ Property Page but nothing I try works. Currently the include directories path has :

$(VCInstallDir)include
$(VCInstallDir)atlmfc\include
$(WindowsSDK_IncludePath)

Any thoughts on how to fix?

Upvotes: 0

Views: 289

Answers (2)

Pierre Fourgeaud
Pierre Fourgeaud

Reputation: 14510

For standard c++ headers you must not put the .h so :

#include <iostream.h>

should become :

#include <iostream>

After that, if you are beginning with cplusplus, here is a link with the standard library headers (and articles about c++). It is a great help to have this website : http://www.cplusplus.com/reference/

Upvotes: 0

James McNellis
James McNellis

Reputation: 354969

It's not <iostream.h>, it's just <iostream>.

Upvotes: 2

Related Questions