Original Post
I have the following block of code: in this classes .h file. For some reason, I get the following linking errors: Renderer.obj : error LNK2001: unresolved external symbol _D3DXMatrixPerspectiveFovLH@20 Renderer.obj : error LNK2001: unresolved external symbol _D3DXMatrixLookAtLH@16 Do I need to include some other .h files? Thanks. -Nick
D3DXMATRIXA16 matWorld;
D3DXMatrixIdentity(&matWorld);
device->SetTransform(D3DTS_WORLD, &matWorld);
D3DXVECTOR3 vEyePt(0.0f, 1.0f, -3.0f);
D3DXVECTOR3 vLookatPt(0.0f, 0.0f, 0.0f);
D3DXVECTOR3 vUpVec(0.0f, 1.0f, 0.0f);
D3DXMATRIXA16 matView;
D3DXMatrixLookAtLH(&matView, &vEyePt, &vLookatPt, &vUpVec);
device->SetTransform(D3DTS_VIEW, &matView);
D3DXMATRIXA16 matProj;
D3DXMatrixPerspectiveFovLH(&matProj, D3DX_PI/4, 1.0f, 1.0f, 100.0f);
device->SetTransform(D3DTS_PROJECTION, &matProj); This is the only place I'm using LookAtLH and PerspectiveFovLH. I've include