![visual studio 2010 d3dx9.lib visual studio 2010 d3dx9.lib](https://community.gamedev.tv/uploads/db2322/original/3X/2/f/2fee21573b8f337b7c28684fa4e4d435a08eed6b.png)
$(VCInstallDir)include $(VCInstallDir)atlmfc\include $(WindowsSdkDir)include $(FrameworkSDKDir)\include įor me. (And yes, the semi colon is supposed to be there, so everythingįrom the C in C:\ all the way to the after Include.) So go to Project Properties->Configuration Properties->VC++ Directories and add C:\Program Files\Microsoft DirectX SDK (June 2010)\Include to Include Directories before everything else. Try putting that path in Project Properties->Configuration Properties->VC++ Directories->Include Directories instead. This is because the major point of my posts
VISUAL STUDIO 2010 D3DX9.LIB CODE
I may also give inefficient code or introduce some problems to discourage copy/paste coding. They are meant to just illustrate a point. If you get an MSBuild error saying that the command line is incorrect, then you should use one of these to check what option is the problem, and then fix the associated property.Īny samples given are not meant to have error checking or show best practices. Line it used in a file named cl.command.1.tlog. On a build that has already taken place, you can find what command You can see what command line it will be using under Project Properties->Configuration Properties->C/C++->Command Line.
![visual studio 2010 d3dx9.lib visual studio 2010 d3dx9.lib](https://takinginitiative.files.wordpress.com/2010/07/5.png)
It adds a /I command line option to the cl.exe command line. So if you set Additional Include Directories, Whenever you set an option under Project Properties->Configuration Properties->C/C++ it gets transformed into a command line option to use when it runs cl.exe. If you did forget to put the semi colon there, then I apologise for not drawing your attention to it sooner. The Include Directories does the same jobįor the entire project so with that set correctly there is no need for anything to be set in the Additional Include Directories.īut if you want a possible reason why this is a problem, Additional Include Directories is also a semi colon seperated list of directories, so if the path you put into it doesn't have a semi colon at the end, then the compiler could be coming up with an Considering what was just done, and what the error message includes, try going to Additional Include Directories and delete everything in there. Basically, one of the command line options for CL is set incorrectly.