DirectX编译环境配置

VS2008/2010/2012 -> Project -> Properties -> Configuration Properties ->

 

VC++ Directories -> Include Directories -> 添加 $(DXSDK_DIR)Include;

VC++ Directories -> Library Directories -> 添加 $(DXSDK_DIR)Lib\x86; $(DXSDK_DIR)Lib\x64;

 

Linker -> Input -> Additional Dependencies -> 添加 d3d11.lib; d3dx11.lib; dxerr.lib;

或者在代码头部的#include<>后面加入:

#pragma comment (lib, "d3d11.lib")

#pragma comment (lib, "d3dx11.lib")

#pragma comment (lib, "dxerr.lib")

 

posted @ 2013-05-06 17:56  Clotho_Lee  阅读(236)  评论(0编辑  收藏  举报