>triangledx9.obj : error LNK2019: unresolved external symbol _D3DXMatrixMultiply@12 referenced in function "void __cdecl SetupMatrices(void)" (?SetupMatrices@@YAXXZ)
1>triangledx9.obj : error LNK2019: unresolved external symbol _D3DXMatrixRotationY@8 referenced in function "void __cdecl SetupMatrices(void)" (?SetupMatrices@@YAXXZ)
1>triangledx9.obj : error LNK2019: unresolved external symbol _D3DXMatrixTranslation@16 referenced in function "void __cdecl SetupMatrices(void)" (?SetupMatrices@@YAXXZ)
1>C:\Users\phil\Desktop\bgp_sources\vcnet2003\VCNET2003\chapter06\load_bitmap\triangledx9\Debug\triangledx9.exe : fatal error LNK1120: 3 unresolved externals
here is the code I am having trouble with.
float x=10.0f,y=10.0f,z=5.0f,r=D3DX_PI/2.0;
void SetupMatrices()
{
D3DXMATRIX matWorld;
D3DXMATRIX matTemp;
D3DXMatrixTranslation( &matWorld, x, y, z );
D3DXMatrixRotationY( &matTemp, r );
D3DXMatrixMultiply( &matWorld, &matWorld, &matTemp );
D3DXMatrixTranslation( &matTemp, x, y, z );
D3DXMatrixMultiply( &matWorld, &matWorld, &matTemp );
d3ddev->SetTransform( D3DTS_WORLD, &matWorld );
}
I will continue to work on this problem.






