1
votes

i have a problem with win8 and directx library. i have directx jun 2010 i added its d3dx11.lib and .h files but it doesnt work and says library not found. i found hte link bellow that says you can work with win8 sdk instead of directx libraries and d3dx.... libraries are not supported anymore.

http://msdn.microsoft.com/en-us/library/windows/desktop/ee663275%28v=vs.85%29.aspx

i found in vs2012 there is a project that builds directx proggram but when i made a project with it it wasnt like any directx code ive seen before its more like xna
what these really mean? how should i work with these changes? its better to return to win 7 and previous libraries or work with these new tools. thanks for helping

1
What kind of application are you building? The win8 sdk is probably required if you target app store. For desktop, older d3d sdks should work.user180326
@jdv-JandeVaan you mean if i set up win8 sdk d3dx libraries will be found in visual studio? win 8 sdk is being downloaded. if older versions work in it why it says: library not found? what this link mean that directx now is a part of win8 sdkvirtouso

1 Answers

4
votes

"Where is the DirectX SDK?" explains that well. Probably you will want to read it one more time.

D3DX

D3DX and D3D is not the same. D3DX is just a helper library. Microsoft not recommends to use D3DX anymore and stripped it from SDK. So now:

  • For new code: "Living without D3DX" explains what to use instead in your new code. And here are some D3DX replacement stuff.
  • For old code: if you just want to build old code that uses D3DX (tutorial samples, for example), you just need to install DirectX SDK and add include/lib paths to your project, as if it was any other library. Mixing Windows SDK and DirectX SDK is not recommended and can lead to errors, so don't use it in new code. Also read here.

Probably, you will be interested to read this and that answer also.

P.S. As always, if linker says, "Library not found", double check, that you've added library path to project options and that library file exists at that folder.

Happy coding!