I am trying to compile my first program in the Visual Studio C++ Express.
But I still get error reports in Build output that I should insert headers.
I tried tutorial codes from this page:
http://www.cplusplus.com/doc/tutorial/classes2/
And I tried to insert only only one line of:
#include <iostream>
and deleted headers and resources from the project. Still I got error.
------ Build started: Project: test4, Configuration: Debug Win32 ------
test4.cpp
c:\projects\test4\test4\test4.cpp(2): warning C4627: '#include <iostream>': skipped when looking for precompiled header use
Add directive to 'StdAfx.h' or rebuild precompiled header
c:\projects\test4\test4\test4.cpp(4): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
What I need to correct or to set to make the program working?
			
			But I still get error reports in Build output that I should insert headers.
I tried tutorial codes from this page:
http://www.cplusplus.com/doc/tutorial/classes2/
And I tried to insert only only one line of:
#include <iostream>
and deleted headers and resources from the project. Still I got error.
------ Build started: Project: test4, Configuration: Debug Win32 ------
test4.cpp
c:\projects\test4\test4\test4.cpp(2): warning C4627: '#include <iostream>': skipped when looking for precompiled header use
Add directive to 'StdAfx.h' or rebuild precompiled header
c:\projects\test4\test4\test4.cpp(4): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
What I need to correct or to set to make the program working?
 
				
		 
			 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		
 Facebook
Facebook Twitter
Twitter