Menu

linker error: timeGetTime

2002-12-25
2012-09-26
  • Nobody/Anonymous

    I'm getting an error message:
    undefined reference to 'timeGetTime@0'

    I'm using Dev-c++ 4.9.7.0

     
    • upcase

      upcase - 2002-12-25

      Hmmm... Mind beeing a little bit more concrete? What are you trying to do?
      Normally an undefined reference occurs when you use a function found in a lib and forgot to link against that lib.
      Maybe tell us what your prog should do, what headers and functions you use and somebody might know the answer...

       
    • Nobody/Anonymous

      I'm trying to make an animation.

      The function is found in mmsystem.h.

      Should I do something else than just #include mmsystem.h to get it work ??

      I had a linker error also in PlaySound()

       
    • Nobody/Anonymous

      I'm trying to make an animation.

      The function is found in mmsystem.h.

      Should I do something else than just #include mmsystem.h to get it work ??

      I had a linker error also in PlaySound()

       
    • Nobody/Anonymous

      Yes, the header file just gives the interface, you have to link the library in.  The way your do that is to give a compiler command line option of:

      -lwinmm

      I am guessing there on what the library name is.  Search the forum, I worked with someone a couple of weeks ago and gave what libraries you need to link against.

      Wayne

       
    • Nobody/Anonymous

       
    • Nobody/Anonymous

      Thanks. I've been trying to fix this for about a week.

       
    • Patrick Ogay

      Patrick Ogay - 2002-12-26

      you agree it's a lib-problem.

      you link against the correct lib (you can use a tool to investigate the libs entries)?
      your library pathes are correct?

      I vaguely remember also a "Posix Compliance problem"  with some functions.
      I don't remember on with plattform,  and wether it resulted in compiler or link error.
      Check the function and the compiler Options on compliance.

      Greets
      Pat

       

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.