1. Stdafx.h is not a standard C++ header file. Here is the default custom file of VS. Used in system precompilation headers. An error like “stdafx.h” : No such file or directory generally occurs, possibly because the compiler cannot create a precompiled file via stdafx.cpp, so other files cannot refer to the PCH file.
Solution: Select the source file stdafx.cpp, right-click -> Property – & gt; C/C++ -> Precompiled headers. The above problem is usually caused by changing the options for precompiled headers from create to use, which can be resolved by changing the options back to create.
Read More:
- Fatal error C1010: unexpected end of file encountered while looking for precompiled header. Did you forget to add “ා include” StdAfx. H to the source
- gcc /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
- Solution of unable to open source file “StdAfx. H” in vs2013 / 2012
- 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
- In VS2010, the compiler cannot open the file “GL / glaux. H”: no such file or directory
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory
- Cannot open include file: ‘io.h‘: No such file or directory
- 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: libipq. H: no such file or directory solution
- #During OpenGL development, fatal error C1083: can’t open include file: “GL / glut. H”: no such file or directory
- Solution to error opening trace file: no such file or directory (2) in Android
- How to solve the problem of “unable to open include file:” graphics. H “: no such file or directory”
- [Caffe] fatal error: hdf5.h: No such file or directory error solution
- 【linux】error: stdio.h: No such file or directory
- Fatal error in CentOS: Python. H: no that file or directory
- No code, a solution to the error in the path of reading CSV file by Python: filenotfounderror: [errno 2] no such file or directory: ‘XX. CSV‘
- The first time I write OpenGL program, what should I do when I encounter “can’t open include file:” GL / glaux. H “: no such file or directory”?
- [C]fatal error: mysql.h: No such file or directory
- Vs2019 OpenGL glut: error: unable to open include file: ‘GL / glut. H’: no such file or directory
- fatal error: Python.h: No such file or directory