Soulslayer
Soulslayer

Reputation: 118

D3DCompileFromFile unresolved external

Im having a linker error while creating a simple directx code which uses the default effects11.lib. The error Im getting :

Effects11.lib(EffectAPI.obj) : error LNK2001: unresolved external symbol D3DCompileFromFile

As I learned from some links that I am missing a d3dcompiler.dll. I included the d3dcompiler.lib in the project. But I am not sure how to link the dll to the project . Im new in these stuffs.

One solved his problem by doing this :

"The default Effects project was including the Windows dev kit (C:\Program Files (x86)\Windows Kits\8.0 for me). After putting the DirectX SDK path first, this problem was fixed"

But I dont know what he meant.

So please help me solve the problem. I really do not have time with the upcoming term project at hand. And I am new so please give me details.

Upvotes: 1

Views: 3125

Answers (2)

Soulslayer
Soulslayer

Reputation: 118

I moved on to VS13 and it solved my problem , I thought the problem was because I included Effects11d.lib in relaesae mode. I had to include only Effect11.lib in release mode.

Upvotes: 0

jacobsgriffith
jacobsgriffith

Reputation: 1476

Take the $(WindowsSDK_LibraryPath_x86) entry from the /Configuration Properties/VC++ Directories/Library Directories and insert it before all other library dependencies in Configuration Properties/Linker/General/Additional Library Dependencies.

BAM!

Upvotes: 3

Related Questions