Jump to content
  • Advertisement
Sign in to follow this  
churroloco

Including d3d10.lib in Static lib

This topic is 3048 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

Hello I am having a difficult time including d3d10.lib into my project. My visual studio solution has two project one static library (The engine) and one executable project (engine test project). I first tried to include the d3d10.lib into the static library but realized that wouldn't work. I then tried to include d3d10.lib into the executable project but it keeps saying it can't open d3d10.lib. Here is what I have don't. 1.) Only installed latest February build of DirectX SDK 2.) Set the LIB path in Tools->Options->Project Directtories to "C:\Program Files (x86)\Microsoft DirectX SDK (February 2010)\Lib\" ( I even tried setting it to the subfolder x86 and x64) It still says it can't open the libs. Any ideas?

Share this post


Link to post
Share on other sites
Advertisement
In theory the installer should set the paths for you BUT just in case you can set them manually as you mentioned. But be advised that you set it twice -- once for x86 and once for x64. Just use the little dropdown in that same dialog. Make sure its the FULL path to the .lib including the x86/x64 depending on whats selected in the drop down.

Specify the .lib in the exe project and if it still doesnt link turn on verbose output in advanced linker settings

Share this post


Link to post
Share on other sites
Well, I added both full paths x86 and x64. I'm pretty sure it should be using 32 though since the platform is Window32.

Also, I set the output to verbose mode but didn't get anything more

Here is the build log:
Linking...
LINK : fatal error LNK1104: cannot open file 'd3d10.lib

Also I tried differentiating then integrating and I only seemed to get the same function back. Just in case, I set Epsilon just above 0. I still got the linking error.

Could anything information help?

Share this post


Link to post
Share on other sites
Here is some more info...

Linker->Input:
"d3d10.lib, d3dx10d.lib, ../debug/CatacombEngine.lib"

Tools->Options->Project Directories->LIB option
C:\Program Files (x86)\Microsoft DirectX SDK (February 2010)\Lib\x86
C:\Program Files (x86)\Microsoft DirectX SDK (February 2010)\Lib\x64

Share this post


Link to post
Share on other sites
Use spaces to separate library names in the linker Input field, not commas.

d3d10.lib d3dx10d.lib ../debug/CatacombEngine.lib

Share this post


Link to post
Share on other sites
OMG! lol thanks.. Sure enough there is no "d3d10.lib,"

Well, I will take stupid mistake over crazy unexplained problem. Thanks a lot everybody.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!