# compiler cant recognize d3d9.lib

## Recommended Posts

My compiler can't find d3d9.lib when I try to load it, so I searched for it myself and found it right in the folder its supposed to be in. I use Visual Studio 2005 EE and I took a screenshot to prove my directories are correct. Sorry, but, how do I display pics? And if it helps, I need d3d9.lib for the Gamedev SDL article: http://www.gamedev.net/reference/articles/article2249.asp Thanks in advance. [Edited by - Evil Booger on October 18, 2006 7:20:26 PM]

##### Share on other sites
Hi,

A) It would only not find it if you don't have it or you havn't pointed the IDE at the directory it resides in.

B) That is the wrong link.

C)
<img src="[URL]" />
to display images.

Hope that helps,

Dave

##### Share on other sites
A) That's why I have the screenshot, to prove that I have the right directories.
B) That's no the wrong link, I just copied and pasted it from the browser and double-checked.
C) My pic only brings up a little white box with an x in it.

##### Share on other sites
The image isn't working because:

A) MY BAD! you don't actually put the [] around it, i didn't make that clear. Sorry.

B) You have put an invalid URL in, that is the files path on your computer. You need to upload it to somewhere.

Dave

ok ill try again

##### Share on other sites
Well I tried all the long website thingys that imageshack provided and theey all came up as boxes in the preview so I'll just post the address.
http://img215.imageshack.us/img215/9646/screen03sr3.jpg

##### Share on other sites
It can't find it because:

1. it looks for include files in the include directories, not the library directories (and it thinks that your d3d9.lib is an include file because of your use of #include)

2. you don't link in libraries via #include, that is your biggest mistake. You need to go to Project->properties->Config Properties->linker->Input and put your library names under "Additional Dependencies. Or use #pragma approach.

##### Share on other sites
And I thought you were a modeller [oh]

Well, anyway, dranith is correct about #including libs... it just plain doesnt work.

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account

• ### Forum Statistics

• Total Topics
627749
• Total Posts
2978913

• 10
• 10
• 21
• 14
• 14