   LNK1104 cannot open "d3dx9.lib"
  Hey,I have an error message LNK1104 cannot open"d3dx9.lib" but I include the path for the .lib into my c++directories. I use the SDK(August 2007) and I checked that the d3d9.lib was working. In my program I included "d3dx9.h" and "d3d9.h" and also #pragma comment(lib, "d3d9.lib")#pragma comment(lib, "d3dx9.lib")I am new to DirectX and D3....   
  Does it work if you put d3dx9d.lib in your solution directory? If so, then MSVC (I assume you're using visual studio) can't find the DLL. If not, then the lib is probably corrupt, and reinstalling the SDK should help.Also, please tell me you're not using Visual Studio 6.0 - that won't work at all [smile]   ;  You also don't say if you are compiling your own code that you wrote from scratch, or if you are attempting to compile one of the SDK samples.  If you can't compile one of the SDK samples, then your VS.NET configuration is wrong.  If you can compile the samples but can't compile your project, then your project is configured wrong.   ;  You didnt say that you included it in the project, in Project->'Your Project' Properties->Linker->Input and in the Additional Dependencies you should have d3dx9.lib in there, although thinking about it if you did include it with pragma then there isnt much reason it shouldnt work :/GL !edit: Your error is cannot find "d3dx9.lib" and your pragma comment is for "d3d9.lib", they are different libraries so make sure you have the correct one.   ;Quote:Original post by Chett2001Your error is cannot find "d3dx9.lib" and your pragma comment is for "d3d9.lib", they are different libraries so make sure you have the correct one.It looks like he has both #pragmas, actually.I say look at the samples; if they compile and link, emulate what they are doing.  If they don't compile or link, then you have something more basic wrong with your setup.   ;  I am using visual studio express edition 2008, maybe it does not work with it.When I am using the d3d9 lib my previous tutorial sample works however when I add the d3dx9 lib I get the error message. In addition because I use two pragmas, I must not need to use the linker ->Input??? mustn't I?Also I tried to reinstall the SDK but I still have the same mistake.   