Getting started with DirectX

Started by
15 comments, last by ryan20fun 12 years, 10 months ago
I am using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.

Advertisement

I am using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.




why are you using a SDK that is 4 Years Old ?

Never say Never, Because Never comes too soon. - ryan20fun

Disclaimer: Each post of mine is intended as an attempt of helping and/or bringing some meaningfull insight to the topic at hand. Due to my nature, my good intentions will not always be plainly visible. I apologise in advance and assure you I mean no harm and do not intend to insult anyone.


I am using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.




You have to set the include path and the library paths for your project, as well as specify additional dependencies in the linker.

To specify the paths, open up VS and start a project (or use an existing sample from the SDK), click on the 'Properties' tab at the top, navigate to 'VC++ directories' and click on the 'Include Directories' row in the window and to the right specify the path to the SDK's include folder. Then click on the 'Library Directories' row and specify the path to the SDK's lib folder.

Once you done that, under the VC++ Directories click on Linker beneath it. In the linker category, navigate to the Input option. Select the 'Additional Dependencies' row and in the field to the right enter the library file names you want to use. For example to use DX10, you would want to probably specify


d3d10.lib
d3dx10d.lib
dxerr.lib
dxguid.lib
dxgi.lib

as dependencies.

Hope that was clear enough, good luck.

[quote name='Shashwat Rohilla' timestamp='1306734346' post='4817394']
I am using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.




why are you using a SDK that is 4 Years Old ?
[/quote]

This was one of the few torrents which I got. I asked my friend to download.
Please send me the link for some newer version.
Or mail me some torrent (if possible) at
[email="shashwat.delhi@gmail.com"]shashwat.delhi@gmail.com[/email].
Is this problem coming because I am using old SDK?
Thank you!

[quote name='ryan20fun' timestamp='1306734882' post='4817396']
[quote name='Shashwat Rohilla' timestamp='1306734346' post='4817394']
I am using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.




why are you using a SDK that is 4 Years Old ?
[/quote]

This was one of the few torrents which I got. I asked my friend to download.
Please send me the link for some newer version.
Or mail me some torrent (if possible) at
[email="shashwat.delhi@gmail.com"]shashwat.delhi@gmail.com[/email].
Is this problem coming because I am using old SDK?
Thank you!
[/quote]

http://www.microsoft...02-438a3ba730ba

[quote name='ryan20fun' timestamp='1306734882' post='4817396']
[quote name='Shashwat Rohilla' timestamp='1306734346' post='4817394']
I am using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.




why are you using a SDK that is 4 Years Old ?
[/quote]

This was one of the few torrents which I got. I asked my friend to download.
Please send me the link for some newer version.
Or mail me some torrent (if possible) at
[email="shashwat.delhi@gmail.com"]shashwat.delhi@gmail.com[/email].
Is this problem coming because I am using old SDK?
Thank you!
[/quote]

why was my post -1 ?, its not like asking a question is bad

here is the link to the latest version

Never say Never, Because Never comes too soon. - ryan20fun

Disclaimer: Each post of mine is intended as an attempt of helping and/or bringing some meaningfull insight to the topic at hand. Due to my nature, my good intentions will not always be plainly visible. I apologise in advance and assure you I mean no harm and do not intend to insult anyone.


This was one of the few torrents which I got.




DirectX SDK is FREE laugh.gif

You have to set the include path and the library paths for your project, as well as specify additional dependencies in the linker.

To specify the paths, open up VS and start a project (or use an existing sample from the SDK), click on the 'Properties' tab at the top, navigate to 'VC++ directories' and click on the 'Include Directories' row in the window and to the right specify the path to the SDK's include folder. Then click on the 'Library Directories' row and specify the path to the SDK's lib folder.

Once you done that, under the VC++ Directories click on Linker beneath it. In the linker category, navigate to the Input option. Select the 'Additional Dependencies' row and in the field to the right enter the library file names you want to use. For example to use DX10, you would want to probably specify


d3d10.lib
d3dx10d.lib
dxerr.lib
dxguid.lib
dxgi.lib

as dependencies.

Hope that was clear enough, good luck.


Actually, when I tried writing a basic window program, it worked.
The path is already mentioned and dx*.lib are being added to the same path only. (Still, I will confirm)
It would have been this problem, then I think it should have given the error
"can not find dxd310d.lib" instead of "can not open dxd310d.lib". Isn't it?



[color="#284b72"]http://www.microsoft...02-438a3ba730ba
[/quote]

I downloaded this link. But the total size was around 350MB instead of 571MB mentioned there. The setup didn't started.
When I searched on the net, many people were getting the same error.
So, I started searching for the torrents and that is the one which I found the best at that time.

As a beginner in DirectX, I am comfortable with any version. But atleast the program should run.
it should be: d3dx10.lib and d3d10.lib

Never say Never, Because Never comes too soon. - ryan20fun

Disclaimer: Each post of mine is intended as an attempt of helping and/or bringing some meaningfull insight to the topic at hand. Due to my nature, my good intentions will not always be plainly visible. I apologise in advance and assure you I mean no harm and do not intend to insult anyone.

I have set the path for the library.
Now its giving some different error.
Can anyone tell me what is the problem?
I've attached the snapshots.

This topic is closed to new replies.

Advertisement