visual studio 2012 - DX11 Unresolved Externals -


1>------ build started: project: setup, configuration: debug win32 ------ 1>boxdemo.obj : error lnk2019: unresolved external symbol _d3dx11createeffectfrommemory@24 referenced in function "private: void __thiscall boxapp::buildfx(void)" (?buildfx@boxapp@@aaexxz) 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 ========== 

i'm using vs2012 , trying setup dx11 using sample program frank d lunas dx11 book. have no idea error message means, appreciated.


1>------ build started: project: setup, configuration: debug win32 ------ 1>effects11d.lib(effectapi.obj) : error lnk2019: unresolved external symbol _d3dcompilefromfile@36 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 ========== 

linker cannot find definition of d3dx11createeffectfrommemory function. function part of effects11 framework. , need link effects11.lib build program.

previously, develop directx apps, must have been directx sdk installed. stand-alone directx sdk concerned legacy , part of windows sdk (since version 8.0). you`ve got when installed visual studio 2012.

the problem sdk version doesn't include effect11 framework, among other things.

there several ways fix problems:

  1. download , install legacy directx sdk. when compiling warnings, because of conflicting old directx sdk , new windows sdk. solve can switch project v110xp toolset or install windows 7 sdk , switch v100 in project's options.
  2. in case of sample program, mr. luna included compiled libs in common folder of source code archive. i'm not sure if work win8 sdk.
  3. correct source code , strip out effect11 stuff. if learning directx, not easy way.

some more explanation chuck walbourn - msft:


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -