Tucker Morgan
Tucker Morgan

Reputation: 111

Error when compiling a DirectX9, program says in cannot find d3dx.lib

I have already placed d3d.lib and d3dx.lib in additional dependencies, and added the paths to the VC++ directories include and lib Directories, but I am still getting this error.

I have even gone as far as to move the Include and lib flies from the SDK into the include and lib files of VS 2010.

Upvotes: 0

Views: 449

Answers (1)

mattnewport
mattnewport

Reputation: 14067

For D3D9, you want to link against d3d9.lib and d3dx9.lib, not d3d.lib and d3dx.lib. There are also d3d10.lib, d3d10_1.lib, d3d11.lib, d3dx10.lib and d3dx11.lib corresponding to other D3D versions.

Upvotes: 1

Related Questions