Menu

How can I get timeGetTime()?

2002-11-20
2012-09-26
  • Nobody/Anonymous

    I included mmsystem.h, but when compiling I still got a linker error saying timeGetTime() was undefined. What should I do?

    I'm using Dev C++ 4.

    Thanks for any helps.

    Jack

     
    • Nobody/Anonymous

      You need to link with the correct library:

      libwinmm.a or just -lwinmm should do it.

       
    • Nobody/Anonymous

      use the  GetTickCount() do the same

       
    • Nobody/Anonymous

      timeGetTime can have a higher resolution than GetTickCount.

       
    • Nobody/Anonymous

      Can you please tell me the exact syntax for including that library? I don't have experience with libraries different from those with a ".h" as extesion file name.

      Thank you.

      Jack

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.