-h /.cpp file: cannot open the source file “stdafx.h”, some methods found are not applicable, such as: set project properties ->; Configure properties ->; C/C++-> Precompiled header ->; Using (/Yu)/ creating (/Yc)/ not using precompiled headers does not work either way. Despite this error, the program was run successfully. The initialization and compilation runs seem to use different lookup paths, which is a problem when developed with a lower version of VS2005/VS2008 but opened with a higher version of VS2010. The solution is:
< wbr> < wbr> < wbr> < wbr> < wbr> < wbr> < wbr> < wbr> < wbr> < wbr> < wbr> Project Properties -& gt; Configure properties -& gt; C/C++-& gt; General – & amp; gt; Additional include directory -& gt; < strong> $(ProjectDir)< /strong> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr>
< wbr> < wbr> < wbr> < wbr> < wbr> < wbr> < wbr> < wbr> < wbr> < wbr> < wbr> Project Properties -& gt; Configure properties -& gt; C/C++-& gt; General – & amp; gt; Additional include directory -& gt; < strong> $(ProjectDir)< /strong> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr> < /wbr>
Read More:
- IntelliSense in VC + + 2010: unable to open source file “StdAfx. H”
- Solution of unable to open source file “StdAfx. H” in vs2013 / 2012
- Unable to open source file in vs
- Solution of vs unable to open source file and link library file
- Fatal error C1010: unexpected end of file encountered while looking for precompiled header. Did you forget to add “ා include” StdAfx. H to the source
- Vs error prompt: “unable to open source file XXXX. H” possible reasons and Solutions
- Solution to the problem of vs2017 error report unable to open source file
- Vs compiling OpenGL project, the solution of unable to open the source file “GL / glaux. H” appears
- How to solve the problem of “unable to open source file XXXXX. H” in VS development?
- Error in header file when calling OpenGL to open obj file in vs2013: unable to open include file: “GL / glut. H”: no such file or directories
- Vs2017 cannot open the source file “XXX. H” by adding a file name after creating a new class
- Solution of header file StdAfx. H “no such file or directory” in Visual Studio
- How to solve the problem of “unable to open include file:” graphics. H “: no such file or directory”
- Vs cannot open source file “XXX. H” problem
- Solution of VS2008 unable to open GL / glaux. H header file
- Vs cannot open the source file unistd. H under Windows
- A fatal error C1083 occurred when compiling C + + code under. Net: unable to open the include file: “xuhk”_ Jnihelloworld. H “: solution to no such file or directory error.
- Error: unable to open include file: ‘GL / glut. H’
- Vs fatal error C1083: unable to open include file: “sys / socket. H”: no such file
- C / C + + cannot open the source file directory, the header file is not imported, the solution is as follows