An error such as unable to open input file, dxerr9.lib probably means that you missed an entry in your code thst references an DirectX 9 interface instead of DirectX 8 interface; or your linker still has a reference to the dxerr9 library which does not exist on your system.