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:
- download , install legacy directx sdk. when compiling warnings, because of conflicting old directx sdk , new windows sdk. solve can switch project
v110xptoolset or install windows 7 sdk , switchv100in project's options. - in case of sample program, mr. luna included compiled libs in
commonfolder of source code archive. i'm not sure if work win8 sdk. - correct source code , strip out effect11 stuff. if learning directx, not easy way.
some more explanation chuck walbourn - msft:
Comments
Post a Comment