缺少文件,DirectX SDK(d3dx9.lib,d3dx9.h) [英] Missing files, DirectX SDK (d3dx9.lib, d3dx9.h)

查看:88
本文介绍了缺少文件,DirectX SDK(d3dx9.lib,d3dx9.h)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在6月10日安装了 DirectX SDK ,但是当我包含 d3dx9.h 时,编译器可以没找到它。

I installed the DirectX SDK June 10, but when I include the d3dx9.h, the compiler can't find it.

我检查了SDK目录,也没有找到它。

I checked the SDK directory, and I didn't find it there either.

文件丢失: d3dx9.lib d3dx9.h dxfile.h

推荐答案

DirectX SDK安装将添加系统环境变量 DXSDK_DIR 包含安装SDK的路径。建议不要使用此变量在Include和Library目录中插入绝对路径,而建议使用此变量来设置DX依赖项的Include和Library路径。

The DirectX SDK installation will add a system environment variable DXSDK_DIR that holds the path to wherever the SDK was installed to. Instead of inserting an absolute path in your Include and Library Directories, I'd recommend using this variable to set the Include and Library path for DX dependencies.

作为包含目录添加: $(DXSDK_DIR)Include

随着图书馆目录的添加: $(DXSDK_DIR)Lib 86x86 $(DXSDK_DIR)Lib\x64 在64位体系结构上

As Library Directory add: $(DXSDK_DIR)Lib\x86 or $(DXSDK_DIR)Lib\x64 on a 64-bit architecture

因此您的VC ++目录应如下所示:

So your VC++ Directories should look something like this:

$(DXSDK_DIR)解析为安装SDK的路径,通常为 C:\Program Files(x86)\Microsoft DirectX SDK(2010年6月),即使您选择其他路径也可以使用,这使得它在不同的人之间更容易使用。

The $(DXSDK_DIR) resolves to the path where you installed the SDK, normally "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)" and works even if you chose another path, which makes it more available between different people.

这篇关于缺少文件,DirectX SDK(d3dx9.lib,d3dx9.h)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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