Sign in to follow this  
PeterV

Problems setting up Direct3D

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this