There’s only one reason for the problem: you don’t include the relevant.h files in your project, whether you’re using an absolute path or a relative path.
The problem for many people may be that the path is clearly included, but still there is a “cannot open the source file”, why?
That’s because you chose the wrong build platform. For example, you built an x86 project but chose the default x64 platform when you included the path.
As shown in the figure below, the marks at 1 and 2 are clearly in conflict.
the solution is: if you are using the x86 choice of the win32 pop-up property page, put related. H or. Lib contains to engineering projects.
Read More:
- Solution of unable to open source file “StdAfx. H” in vs2013 / 2012
- 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 include file:” graphics. H “: no such file or directory”
- Solution to the problem of vs2017 error report unable to open source 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
- IntelliSense in VC + + 2010: unable to open source file “StdAfx. H”
- Vs cannot open source file “XXX. H” problem
- Unable to open source file in vs
- Vs2017 C + + cannot open source file: “sdkddkver. H”, “stdio. H”, “TCHAR. H”
- Solution to the problem of unable to open glaux. H in vs2013
- Solution of VS2008 unable to open GL / glaux. H header file
- Solution of vs unable to open source file and link library file
- Vs cannot open the source file unistd. H under Windows
- Vs fatal error C1083: unable to open include file: “sys / socket. H”: no such file
- Vs2019 OpenGL glut: error: unable to open include file: ‘GL / glut. H’: no such file or directory
- Vs2017 cannot open the source file “XXX. H” by adding a file name after creating a new class
- Solve the problem that the header file of “graphics. H” cannot be loaded in vs2015
- In VS2010, the compiler cannot open the file “GL / glaux. H”: no such file or directory
- Vs + QT reports an error “vs cannot open the source file qchartview”