me me
me me

Reputation: 778

Visual c++ unresolved external symbol _Direct3DCreate9@4

I have tried to find an answer for this for hours, and hours, and hours. This is frickin exhausting. In visual studio I keep having these library issues with DirectX and I think I have narrowed it down to a point where it is almost, almost solvable.

The error at compiling is in the title, here are images of some of my code and the dependencies and such:

Upvotes: 2

Views: 1719

Answers (1)

ThomasSquall
ThomasSquall

Reputation: 717

Usually Unresolved External Symbol is thrown if you are using a function defined in a header, in your case I think d3d9.h, but you haven't linked the containing implementation lib. Right click on your project name under solution explorer and than Properties->Configuration Properties->Linker->Input, now on Additional Dependencies add your lib that I suppose it will be d3d9.lib or d3dx9.lib!

Upvotes: 2

Related Questions