Skip to main content
gamedev.net
🔒 Locked

Direct 3D error

Started by Alaric Jan 8, 2005 at 7:02 PM 3 replies 600+ views
Original Post
Alaric
Alaric
I'm trying to get started in Direct3D, but I'm running into a problem when I compile. I'm using DX9.0 and writing in C using a C++ Win32 App in Visual Studio.NET. Whenever I compile, I get a single error that states the following fatal error LNK1104: cannot open file 'd3d9.lib' ...and yes, I did install the DX9.0 SDK. Does anyone have any idea what might be causing this and the steps to correcting it? Extra information: The only thing that is happening in this project right now is clearing the backbuffer using Direct3D. Thanks
Jupiter01
Jupiter01
Set the directories in Tools, Options, Projects->VC++ directories? Just a guess. Hope it helps :)
jflanglois
jflanglois
Also, make sure that they are at the top of the list.
Alaric
Alaric
...I didn't know that you had to do that. I just thought you had to include the file in the Project's 'Header Files' folder. (I tried your suggestion, and the problem still exists)


Ok...whenever I installed the SDK, all of the stuff got put in C:\DXSDK. Do I need to select C:\DXSDK\Include for the Tools|Options|Projects|VC++ Properties|Include files or will C:\DXSDK suffice? ...And which of the properties do I need to include the DX folders? Include and Library? Or are there any other ones?
Alaric
Alaric
Never mind....I got it to work. Thanks for your help : o )

I had to specify the exact include folder and the exact library folder...I was just using the parent 'DXSDK'
Alan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.