请问有人知道为什么我编译Advanced Animation with DirectX中源代码时出现
1>WinMain.obj : error LNK2019: 无法解析的外部符号"long __cdecl LoadMesh(struct D3DXMESHCONTAINER_EX * *,struct IDirect3DDevice9 *,char *,char *,unsigned long,unsigned long)" (?LoadMesh@@YAJPAPAUD3DXMESHCONTAINER_EX@@PAUIDirect3DDevice9@@PAD2KK@Z),该符号在函数"int __cdecl DoInit(struct HWND__ *)" (?DoInit@@YAHPAUHWND__@@@Z) 中被引用
1>WinMain.obj : error LNK2019: 无法解析的外部符号"long __cdecl InitD3D(struct IDirect3D9 * *,struct IDirect3DDevice9 * *,struct HWND__ *,int,int)" (?InitD3D@@YAJPAPAUIDirect3D9@@PAPAUIDirect3DDevice9@@PAUHWND__@@HH@Z),该符号在函数"int __cdecl DoInit(struct HWND__ *)" (?DoInit@@YAHPAUHWND__@@@Z) 中被引用
1>WinMain.obj : error LNK2019: 无法解析的外部符号"long __cdecl DrawMesh(struct D3DXMESHCONTAINER_EX *)" (?DrawMesh@@YAJPAUD3DXMESHCONTAINER_EX@@@Z),该符号在函数"void __cdecl DoFrame(void)" (?DoFrame@@YAXXZ) 中被引用
1>.\Debug/Cinematic.exe : fatal error LNK1120: 3 个无法解析的外部命令
有高人知道这是为什么吗,谢谢啦
1>WinMain.obj : error LNK2019: 无法解析的外部符号"long __cdecl LoadMesh(struct D3DXMESHCONTAINER_EX * *,struct IDirect3DDevice9 *,char *,char *,unsigned long,unsigned long)" (?LoadMesh@@YAJPAPAUD3DXMESHCONTAINER_EX@@PAUIDirect3DDevice9@@PAD2KK@Z),该符号在函数"int __cdecl DoInit(struct HWND__ *)" (?DoInit@@YAHPAUHWND__@@@Z) 中被引用
1>WinMain.obj : error LNK2019: 无法解析的外部符号"long __cdecl InitD3D(struct IDirect3D9 * *,struct IDirect3DDevice9 * *,struct HWND__ *,int,int)" (?InitD3D@@YAJPAPAUIDirect3D9@@PAPAUIDirect3DDevice9@@PAUHWND__@@HH@Z),该符号在函数"int __cdecl DoInit(struct HWND__ *)" (?DoInit@@YAHPAUHWND__@@@Z) 中被引用
1>WinMain.obj : error LNK2019: 无法解析的外部符号"long __cdecl DrawMesh(struct D3DXMESHCONTAINER_EX *)" (?DrawMesh@@YAJPAUD3DXMESHCONTAINER_EX@@@Z),该符号在函数"void __cdecl DoFrame(void)" (?DoFrame@@YAXXZ) 中被引用
1>.\Debug/Cinematic.exe : fatal error LNK1120: 3 个无法解析的外部命令
有高人知道这是为什么吗,谢谢啦
目录也设了
C:\Program Files\Microsoft DirectX SDK (August 2008)\Include
C:\Program Files\Microsoft DirectX SDK (August 2008)\Lib\x86之前用红龙 directx入门那本书上的代码我都可以编译