Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot open file 'dxguid.lib'

I'm having annoying linker issues - VS2010 claims it cannot find this file, but it's clearly there, and the path is correct - I'm using other lib's in the same folder that all work no problem. (d3d9.lib, and dinput8.lib) I'm using the February 2010 version of DXSDK (DX9) in case that's relevant. I've even tried copy/pasting the file name so I know I didn't mis-type it. My "Additional Dependencies" line looks like this:

Library.lib;d3d9.lib;dinput8.lib;dxguid.lib;%(AdditionalDependencies)

and the Additional Library Directories line is (for Debug build):

$(DXSDK_DIR)\Lib\;$(SolutionDir)\Debug;%(AdditionalLibraryDirectories)

(Library.lib is my own library, stored in the $(SolutionDir)\Debug folder, or Release for the Release build, but that's not the issue.)

The DXSDK directory contains 2 sub-folders, x64 and x86, and the file exists in both of them, along with the other two libraries which work fine. (Running Windows 7 64bit, so it should be using the first one.) Any ideas?

like image 229
Darrel Hoffman Avatar asked Jan 17 '23 06:01

Darrel Hoffman


1 Answers

EDIT: dinput8 and d3d9 libs might already be in the standard libraries (they are way too old), that's why this worked before.

The directory

$(DXSDK_DIR)\Lib

is not a complete path. It must be either

$(DXSDK_DIR)\Lib\x86

or

$(DXSDK_DIR)\Lib\x64

depending on your target.

If you're building your project for 32-bit environment (go to Configration Manager and check the exact target), the use the x86 subdirectory, otherwise x64.

like image 116
Viktor Latypov Avatar answered Jan 24 '23 13:01

Viktor Latypov