Original Post
i had about a good month of trouble tryin to Setup Direct X with Dev Cpp, but thanks to ace_lovegrove i found out how. im writing this to help other people that are in the position i was in. FIRST: Yes you do need the SDK you can find the latest one at http://msdn.microsoft.com/directx/directxdownloads/ i got the Redistributable the update and the Run Time (different page go to popular downloads) SECOND: Here is the part were most people discourage Dev
Quote:not true.... open up the update DO NOT BOTHER WITH THE LIBS THAT COME WITH THE SDK! just worry about the Include folder open it and copy all the files into your Dev Cpp Include Directory (C:\Dev Cpp\Include) unless otherwise installed. EDIT: when you get the headers i use x86 some people use x64 though now in the SDK find Samples Then open C++ Then Direct3D then Tutorials then Tut 01 or sumthin get the .cpp file copy the contents THIRD: Sart a new windows project open your project options go to paramaters under linker type -ld3d9 in the box. Compile it Note: the reason i said to ignore the SDK's LIBS is because Dev came pre-installed with the libraries and can be found in the Lib Directory of Dev Cpp under the form lib(name of the library).a so d3d9 is libd3d9, how i did it with the linker is simple -l means its gonna be lib sumthing in the Lib folder of Dev d3d9 is the library so -ld3d9 searches for libd3d9.a in the Lib Directory of Dev Hopes this helps, Richard
i heard Direct X is hard to setup with Dev Cpp