Jump to content
  • Advertisement
Sign in to follow this  
PeterV

Problems setting up Direct3D

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

Hi, I´m trying to set up d3d9 in my application but I get this linker error: [Linker Error] Error: Unresolved external 'Direct3DCreate9' referenced from C:\DEVELOPER\TEST APPLICATION\TAMAINFORM.OBJ I´ve included d3d9 by adding #include <d3d9.h> and there are a lot of d3d function call in my code where my compiler does not have a problem with. It only the Direct3DCreate9 function which gives problems. Have I forgotten to include something? Peter

Share this post


Link to post
Share on other sites
Advertisement
Yep, this is definatly a linker problem.
A cheats way to link is to have the following in the top of your code (assuming you are using Visual Studio)

#pragma comment(lib,"d3d9.lib")

But even then, you need to have your linker paths setup correctly.

Share this post


Link to post
Share on other sites
Thanks for the help guys, I´ve got it running now.

It actually took some time before I got it right because I´m using Borland C++ and I didn´t knew the standard libs do not work for Borland so I had to search for the right libs on the web.

Thanks again,

Peter

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!