Jump to content
  • Advertisement
Sign in to follow this  
DirectXFreak

Why are all the sdk samples throwing these linker errors?

This topic is 4776 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I have .NET set up with DirectX, and I have the directories linked with the .libs for DirectX and all, but whenever I try and compile a sample, it throws these linker errors: Ambient error LNK2001: unresolved external symbol _IID_IDirect3DBaseTexture9 Ambient error LNK2001: unresolved external symbol _IID_IDirect3DCubeTexture9 Ambient error LNK2001: unresolved external symbol _IID_IDirect3DSwapChain9 Ambient error LNK2001: unresolved external symbol _IID_IDirect3DTexture9 Ambient error LNK2001: unresolved external symbol _IID_IDirect3DVolumeTexture9 As far as I know, I am inluding all the .libs required, (d3d9.lib d3dx9.lib winmm.lib dxguid.lib) So, what am I doing wrong? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
You sure you link the good libraries ? There is 2 folder in DX SDK, one for x86 CPUs and one for x64 CPUs.

Share this post


Link to post
Share on other sites
Assuming you installed the DirectX SDK in the traditional way and didn't encounter any installation problems, something else to look at is:


1) go to Tools->Options... in MSVC.NET

2) then go to the Projects->VC++ Directories settings

3) under "Show Libraries For:" select Library Files

4) ensure that the path to the DirectX 9 SDK lib folder is:
a. actually in that list
b. at the TOP of the list

5) repeat steps 3&4 for Include Files


It's possible that the compiler is picking up an older version of the dxguid.lib file, perhaps from the Platform SDK installed when you installed MSVC.NET

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!