Author Topic: timeGetTime()  (Read 11222 times)

Brandlingill

  • Guest
timeGetTime()
« on: September 22, 2006, 12:24:16 pm »
Hi.

I am trying to learn C++ but I've hit a problem and can't find a solution. I am trying to use the timeGetTime() function and if I have understood correctly I just need to #include windows.h and add minmm.lib to the project properties. Ok, I have done the #include but when I try to build it a message says that there is an 'undefined reference to timeGetTime@0'. I've searched on my system (Windows XP) and there is a libwinmm.a file in codeblocks/lib, which I assume is what is needed? In Build -> Compiler Options -> Directories -> Linker, the libs folder is listed so I'm not sure what the problem is. Could anyone please give me a clue about what I am doing wrong? Thanks.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: timeGetTime()
« Reply #1 on: September 22, 2006, 12:48:35 pm »
Quote
add minmm.lib

This should be libwinmm.a.
In other words, add "winmm" in linker libraries.
Be patient!
This bug will be fixed soon...

Brandlingill

  • Guest
Re: timeGetTime()
« Reply #2 on: September 22, 2006, 12:53:54 pm »
Would you believe I tried for hours to fix this? It now works fine.

Thank you very much mandrav!