api-ms-win-core-libraryloader-l1-2-0.dll missing w

2019-04-13 01:27发布

As per instruction from the Windows 8.1 DirectX SDK, d3dcompiler_47.dll is to be redistributed with any Direct3D program from now on. When I try and run my program on a Windows 7 machine with this dll in the same folder, I get a "api-ms-win-core-libraryloader-l1-2-0.dll missing" error. A quick google search suggests this is because of a version mix-up somewhere - is d3dcompiler_47.dll incompatible with this machine? I've checked to make sure it has DirectX 11 installed, which is the version of DirectX that I'm using, and can't figure out why this is happening.

1条回答
来,给爷笑一个
2楼-- · 2019-04-13 01:47

This can only go wrong if you copied d3dcompiler_47.dll from your Windows directory. Which is not suitable to run on older Windows versions.

You must use the redistributable version of it. You'll find it back in the Windows SDK directory. Like C:\Program Files (x86)\Windows Kits\8.1\Redist\D3D on most machines. Pick the x86 or the x64 version of it, depending on the platform target you used to compile your program.

查看更多
登录 后发表回答