pls. help me "again"
My program don't work when I add this code :
---------------------------------
VOID SetupMatrices()
{
D3DXMATRIXA16 matWorld;
UINT iTime = timeGetTime() % 1000;
FLOAT fAngle = iTime * (2.0f * D3DX_PI) / 1000.0f;
------------------------------------------
this is the error I get :
-------------------------
atrices.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0
Debug/app.exe : fatal error LNK1120: 1 unresolved externals
---------------------
what .lib I have to link ? or what is the problem ??
Well I went into google..
..typed in timeGetTime
..clicked on the first link (msdn)
..scrolled down to where it said requirements
..& read "Library: Use Winmm.lib."
solved?
..typed in timeGetTime
..clicked on the first link (msdn)
..scrolled down to where it said requirements
..& read "Library: Use Winmm.lib."
solved?
winmm.lib
To find out which libraries you need to link, please refer to your API documentation. In this case, look at the MSDN entry for timeGetTime
And as Sneftel requested last time, please give your threads more descriptive names, such as "Linker error - timeGetTime" as it helps people to help you more effectivley.
To find out which libraries you need to link, please refer to your API documentation. In this case, look at the MSDN entry for timeGetTime
And as Sneftel requested last time, please give your threads more descriptive names, such as "Linker error - timeGetTime" as it helps people to help you more effectivley.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement