#include errors

May 13, 2012 at 1:17pm
Hi all, my program is:
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>

int main()
{
	using namespace std;
	cout << " You have succeeded with this place_holder " << endl << endl;
	cout << " Please press any key to continue " ;
	cin.get();


return 0;
}

and I'm getting:
1
2
3
4
5
1>  Place_holder.cpp
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\xlocnum(133): error C2857: '#include' statement specified
 with the /YcStdAfx.h command-line option was not found in the source file
1>
1>Build FAILED.

And I don't know why. This program is set up the same many others that worked fine. How can I correct this error?
May 13, 2012 at 2:25pm
I think visual studio is complaining that you didn't put #include "stdafx.h" in your code. Do that, or disable precompiled headers.
Topic archived. No new replies allowed.