2013-05-21 40 views
1
1>------ Build started: Project: Setup, Configuration: Debug Win32 ------ 
1>Effects11d.lib(EffectAPI.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _D3DX11CompileEffectFromFile 
1>C:\Users\Josh\Documents\Game Institute\DirectX\Chapter 1\Projects\Setup\Debug\Setup.exe : fatal error LNK1120: 1 unresolved externals 
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 

我已經在Windows 7試圖安裝的DirectX11與Visual Studio 2012,之後在他的DirectX11書弗蘭克·魯乃指示一段時間了,我一直運行到錯誤。尚未解決外部 - DirectX11的

目前,這是我的錯誤,我有「D3DCompiler.lib」,我已經更新了效果庫,這裏是調試模式屬性的圖片:

http://tinypic.com/view.php?pic=jb64vc&s=5

發行模式的屬性是相同但在兩個庫文件中刪除了'd'。例如,'Effects11d'。

請幫幫我!這讓我瘋狂!

+0

地址:$(DXSDK_DIR)包括包括目錄和$(DXSDK_DIR)的lib \ x86的圖書館目錄,讓我知道它說, –

+0

@FlorisVelleman後,他們已經加入,如果你看一下,你可以看到圖片那。 – Cypras

+0

查看:http://stackoverflow.com/questions/15302276/d3dcompiler-unresolved-extern –

回答

1

您不需要爲此使用舊版DirectX SDK,除非您還使用D3DX11(因爲replacements您也不需要這些D3DX11)。 CodePlex上提供了不需要傳統DirectX SDK的最新Effects 11。

請記住,您需要從源代碼構建Effects 11。 DirectX SDK或其他地方沒有提供「Effects11.lib」或「Effects11D.lib」。您將vcxproj添加到您的解決方案中,然後向您的主項目中添加一個「參考」以鏈接到它。