• Advertisement
Sign in to follow this  

pls. help me "again"

This topic is 4966 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 ??

Share this post


Link to post
Share on other sites
Advertisement
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement