I have tried including it in the linker settings, using #pragma comment (lib, 'd3dx9.h'), and adding the x86 folder to the MS Visual directories. I am using Microsoft Visual C++ 2008 Express Edition. What am I missing?
- LINK: fatal error LNK1104: cannot open file 'd3dx9.lib' This happens when I try to build. The code where the error is: #pragma comment(lib, 'd3dx9.lib') I don't know.
- Feb 19, 2009 Document your problem. Where is d3dx9.lib located. What exactly did you enter in Tools + Options. What setting did you change in the Linker settings.
Active7 years, 11 months ago
I'm currently going though a game programming book and am trying to compile some directx9 code
![D3dx9 Lib For Handbrake D3dx9 Lib For Handbrake](/uploads/1/2/6/0/126085621/933413610.jpg)
I have the latests DirectX11 SDK and the code has these lines of code
But I get LINK : fatal error LNK1104: cannot open file 'd3dc9.lib'
I don't know how to set it up to find this file although in fact I don't get why it asks for it since it isn't inside the Lib file for the DirectX 11 SDK and isn't what i've asked for.
JoelD3dx9 Lib For Handbrake Download
Joel51211 gold badge55 silver badges1515 bronze badges
1 Answer
The linker only knows the name of the .lib file, it doesn't know what directory it is stored in. Project + Properties, Linker, General, Additional Library Directories setting.
The version 11 SDK is quite new. You may need an older version of the SDK if these .libs are no longer distributed. I know the June 2010 edition has them. Download is here.
Hans Passant![D3dx9 Lib For Handbrake D3dx9 Lib For Handbrake](/uploads/1/2/6/0/126085621/329267648.jpg)
812k113113 gold badges13841384 silver badges21672167 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.