1. The header file cannot be found
If the associated path of the header file is not set properly, you need to add both the root directory and the subdirectory to the additional header file directory. For example, if there are two header files in the root directory and the subdirectories sub1 and sub2 that need to be referenced elsewhere, you should add the header file path to the additional package directory in this way:
$(SolutionDir)root
$(SolutionDir)root\sub1
$(SolutionDir)root\sub2
2. It is successful to compile a library alone, but rebuild prompts that the related projects fail to compile
In this case, the lazy relationship between project references is not set well. You should right-click on the solution, – gt; common properties – & gt; project dependencies, and set the lazy relationship between project references without omission. In this way, the rebuild will succeed on the top-level project. At the same time, the compilation of dynamic library and other similar problems can also be solved.
Read More:
- C / C + + cannot open the source file directory, the header file is not imported, the solution is as follows
- Can not start, can not find QT pligins “windows” problem after installing QT vs environment 2021-06-13
- Solve the problem of VC 6.0 fatal error C1033: cannot open program database’.\debug\vc60.pdb’
- [Solved] CAP_IMAGES: can‘t find starting number (in the name of file)
- IntelliSense in VC + + 2010: unable to open source file “StdAfx. H”
- CodeBlocks environment error the compiler could not find a solution to the problem
- 【Oracle】IMP-00010: not a valid export file, header failed verification
- Fatal error c1859: unexpected precompiled header error. Simply rerun the compiler may fix this problem
- To solve this problem, we can’t find the solution of / storage / emulated / 0 / file. I can’t. You can try this
- Solution of header file StdAfx. H “no such file or directory” in Visual Studio
- Using Mocha to test can not find module ‘. /build/release/scrypt’ (Fixed)
- 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
- The 406 status code can not find acceptable representation is returned in spring MVC
- In VS2010, the compiler cannot open the file “GL / glaux. H”: no such file or directory
- Win10 can not open the picture, file system error (- 214721996) repair method
- VC + + OpenGL is used as the development platform to design the program, which can generate any pixel on the screen, and use the pixel to draw the basic graphics
- [VTK] header file and lib file name often used in VTK
- STM32 added firmware library, but could not find h 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
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory