Friday, November 11, 2005

DirectX : Rotating 3D Cube

Just compiled and successfully ran the rotating 3D cube.

Errors and solutions:

1. direct5 error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "void __cdecl SetupRotation(void)" (?SetupRotation@@YAXXZ)

Sol: Include winmm.lib for the linker


2.
direct5 error LNK2019: unresolved external symbol _D3DXMatrixLookAtLH@16 referenced in function "void __cdecl SetupCamera(void)" (?SetupCamera@@YAXXZ)

direct5 error LNK2019: unresolved external symbol _D3DXMatrixMultiply@12 referenced in function "void __cdecl SetupRotation(void)" (?SetupRotation@@YAXXZ)

direct5 error LNK2019: unresolved external symbol _D3DXMatrixPerspectiveFovLH@20 referenced in function "void __cdecl SetupPerspective(void)" (?SetupPerspective@@YAXXZ)

direct5 error LNK2019: unresolved external symbol _D3DXMatrixRotationX@8 referenced in function "void __cdecl SetupRotation(void)" (?SetupRotation@@YAXXZ)

direct5 error LNK2019: unresolved external symbol _D3DXMatrixRotationY@8 referenced in function "void __cdecl SetupRotation(void)" (?SetupRotation@@YAXXZ)

direct5 error LNK2019: unresolved external symbol _D3DXMatrixRotationZ@8 referenced in function "void __cdecl SetupRotation(void)" (?SetupRotation@@YAXXZ)

Sol: Include d3dx8.lib for the linker


3. direct5 fatal error LNK1104: cannot open file 'libci.lib'

Sol: Project > Properties > Linker > Input > Ignore specific library : libci.lib


1 Comments:

At 7:34 AM, Blogger Tin_Man said...

You just saved me tearing my hair out and then having to learn polish... :D

 

Post a Comment

<< Home