"Error LNK1181: cannot open input file '******.lib'"1.
This error usually indicates that the DirectX SDK hasn't been installed properly. Even though you may have some version of the SDK already installed, it is still recommended that DirectX SDK June 2010
be installed to ensure compatibility with the tutorial solutions.2.
Another cause may be an issue with the setup of the paths for the SDK files. To fix this problem, open the Properties window via the Project tab.
Next navigate to "Configuration Properties -> VC++ Directories", and add "$(DXSDK_DIR)include" to the Include Directories, and likewise "$(DXSDK_DIR)\lib\x86" to the Library Directories.3.
If the problem persists, you might have to add the specific *.lib to the Additional Dependencies:
Still in the Properties; go to "Configuration Properties -> Linker -> Input" and add the *.lib to the Additional Dependencies list. Example: dxerr.lib
Optionally you can link the *.lib files with D3DGraphics.cpp like this:
#pragma comment( lib, "dxerr.lib" )
#pragma comment( lib, "d3d9.lib" )
#pragma comment( lib, "d3dx9.lib" )