it says: fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source? But if I add '#include "StdAfx.h"' as it required, more error will appear. What should I do please?
2
votes
1 Answers
3
votes
This is a Visual Studio issue with precompiled headers. If you compile a file and request precompiled headers you have to include this stdafx file. If you disable use of precompiled headers for either the project or for the file then you no longer have to include this header. Look though the project settings for the right checkbox or check the /Y
options you are passing. /Y-
can disable precompiled header usage.