无法打开文件"dxguid.lib" [英] Cannot open file 'dxguid.lib'

查看:395
本文介绍了无法打开文件"dxguid.lib"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了烦人的链接器问题-VS2010声称找不到此文件,但显然它在那儿,并且路径正确-我在同一文件夹中使用其他lib,它们都工作正常. (d3d9.lib和dinput8.lib)如果相关,我使用的是2010年2月版的DXSDK(DX9).我什至尝试过复制/粘贴文件名,所以我知道我没有打错它.我的其他依赖项"行如下所示:

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)

,其他库目录行为(用于Debug版本):

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

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

(Library.lib是我自己的库,存储在$(SolutionDir)\ Debug文件夹或Release版本的Release中,但这不是问题.)

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

DXSDK目录包含2个子文件夹x64和x86,并且文件都存在于这两个文件夹中,并且其他两个库也都可以正常工作. (正在运行Windows 7 64bit,因此应该使用第一个.)有什么想法吗?

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?

推荐答案

dinput8和d3d9库可能已经在标准库中(它们太旧了),这就是为什么以前可行的原因.

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

目录

$(DXSDK_DIR)\Lib

不是完整的路径.必须是

is not a complete path. It must be either

$(DXSDK_DIR)\Lib\x86

$(DXSDK_DIR)\Lib\x64

取决于您的目标.

如果要针对32位环境构建项目(请转到Configration Manager并检查确切的目标),请使用x86子目录,否则使用x64.

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.

这篇关于无法打开文件"dxguid.lib"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆