1>Test1.obj : error LNK2019: 无法解析的外部符号 _D3DXVec3Normalize@8,该符号在函数 _wmain 中被引用
源码:
#include "stdafx.h"
#include <D3DX10.h>
int _tmain(int argc, _TCHAR* argv[])
{
D3DXVECTOR3 u(1.0f,2.0f,3.0f);
float x[3] = {-2.0f,-1.0f,-3.0f};
D3DXVECTOR3 v(x);
D3DXVECTOR3 a,b,c,d,e;
a = u + v;
b = u - v;
c = u * 10;
float L = D3DXVec3Length(&u);
D3DXVec3Normalize(&d,&u);
float s = D3DXVec3Dot(&u,&v);
D3DXVec3Cross(&e,&u,&v);
return 0;
}
错误如题