TestBed.obj : error LNK2001: unresolved external symbol _D3DXVec3Dot@8
TestBed.obj : error LNK2001: unresolved external symbol _D3DXVec3Cross@12
TestBed.obj : error LNK2001: unresolved external symbol _D3DXMatrixIdentity@4
TestBed.obj : error LNK2001: unresolved external symbol _D3DXQuaternionIdentity@
4
TestBed.exe : fatal error LNK1120: 4 unresolved externals
_
Link error
Press any key to continue . . .

I am including d3dx9.lib, why are just these not resolved?
MSDN says they live in d3dx9.lib !!
Posted on 2004-07-01 04:12:08 by Homer
try to include d3d9.lib
Posted on 2004-07-01 08:05:44 by wizzra
Afternoon, EvilHomer2k.

D3DXQuaternionIdentity has a declaration inside d3dx9math.h.
d3dx9math.h includes d3dx9math.inl.
Inside d3dx9math.inl is:


D3DXINLINE D3DXQUATERNION* D3DXQuaternionIdentity
( D3DXQUATERNION *pOut )
{
#ifdef D3DX_DEBUG
if(!pOut)
return NULL;
#endif

pOut->x = pOut->y = pOut->z = 0.0f;
pOut->w = 1.0f;
return pOut;
}


You'll find it's similar to the other unresolved symbols.

Cheers,
Scronty
Posted on 2004-07-01 08:50:00 by Scronty
So those 4? are inlines? thanks - I'll resolve it :)
Posted on 2004-07-01 09:08:39 by Homer
I pinched some of caleb's fpumath macros and wrote quickie procedural wrappers for them - issues were resolved. Thanks.
Posted on 2004-07-01 10:19:15 by Homer