# D3DX11CompileFromFile() function problem DirectX11

What do i have to include to use the D3DX11CompileFromFile() function on DirectX11? I'm using visual studio 2015 and reading the "3D Game programming guide" (Frank Luna) and i'm having problem using that function, any solutions? I read online that is not usable anymore and that now i have to use the D3DCompileFromFile() function, but i have no idea how to do it

D3DX11async.h, according to the documentation. Note that the documentation also specifies the function is deprecated in Windows 8, and entirely usable in Windows store applications, and that may be why you are having trouble.
You should use D3DCompileFromFile instead, as you've read on the internet. It's parameters are nearly identical to the set of parameters to D3DX11CompileFromFile, so with very few modifications you should be able to simply replace one with the other.