Unable to open source file “stdafx.h”. Unable to open source file “stdafx.
As shown in figure:
As shown in figure:
Baidu, for VS2010 there are such methods can be solved:
Expand C/C++ in Project Properties, select General, and add “$(projectDir)” in the Additional Includes directory.
As you can see, it doesn’t work at all in my VS2013.
And it worked:
The precompiled header file is its own, I think VS2013/2012 includes “stdafx.h” by default, so I don’t have to write it again
Read More:
- IntelliSense in VC + + 2010: unable to open source file “StdAfx. H”
- IntelliSense: unable to open source file ‘StdAfx. H’
- Vs error prompt: “unable to open source file XXXX. H” possible reasons and Solutions
- 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?
- Solution of vs unable to open source file and link library file
- Solution to the problem of vs2017 error report unable to open source file
- Unable to open source file in vs
- Solution of VS2008 unable to open GL / glaux. H header file
- 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
- Fatal error C1010: unexpected end of file encountered while looking for precompiled header. Did you forget to add “ා include” StdAfx. H to the source
- Vs2017 C + + cannot open source file: “sdkddkver. H”, “stdio. H”, “TCHAR. H”
- Solution of header file StdAfx. H “no such file or directory” in Visual Studio
- Vs cannot open source file “XXX. H” problem
- Vs2017 cannot open the source file “XXX. H” by adding a file name after creating a new class
- Vs cannot open the source file unistd. H under Windows
- Solution to the problem of unable to open glaux. H in vs2013
- Vs fatal error C1083: unable to open include file: “sys / socket. H”: no such file
- Solution: vs2017 cannot open header files such as stdio. H main. H
- Vs2019 OpenGL glut: error: unable to open include file: ‘GL / glut. H’: no such file or directory