A Probe into Several Mistakes Often Made in Graphics

Preliminary exploration of the package class

(1) Error description: fatal error C1010: An unexpected end of file was encountered while searching for precompiled headers. Did you forget to add "#include"stdafx.h""
Insert picture description here
solution to the source :
(1) Find the menu bar in VS, find the project properties and find "Project Properties -> Configuration Properties -> C/C+±> Precompiled Header ->Do not use YU", (because each cpp file attribute in the project uses the precompiled header (/YU) by default, but the added third-party file does not have the #include “stdafx.h” precompiled header, So the compiler can't find it in this cpp file till the end) Insert picture description hereInsert picture description here
(2) Check whether #include"stdafx.h is quoted in each of your CPP files reference header file, if not, just add it.

(2) error LNK1104: Cannot open the file "D3dx9.lib.
Solution: Copy the D3dx9.lib file in the DirectX SDK to the lib folder under the VC folder of the VS directory, or right-click the project -> Properties- > VC++ directory, modify "package directory" and "library directory"

: : ProMer_Wang

Link: https://blog.csdn.net/qq_43801020/article/details/107030319

This article is the original article of ProMer_Wang, the copyright belongs to the author, please indicate the source of the original text for reprinting, welcome to reprint!

Guess you like

Origin blog.csdn.net/qq_43801020/article/details/107030319