Cannot open file 'dxguid.lib'

空扰寡人 提交于 2019-12-04 10:52:48

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.

You should also note, that for Visual Studio Express 2008, 2010 and CodeBlocks you need the path to DirectX at the top of the list of Additional Libraries or whatever it may be called. Use the path with the strange symbols (a virtual path, right?) as well as browse directly to the path in your DirectX installation.

Use Lib/x86 if you are on a 32 but machine, Lib/x64 if on 64 bit. Also be sure to include the Include directory with the DirectX headers.

Not sure if this will help you, but if you are using old DirectX code here is my video tutorial series: http://hi-techheadache.blogspot.com/p/using-old-source-code.html

It will also clarify everything I said because I show you how to setup these IDEs to work with DirectX.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!