K A Z E
12-25-2005, 05:59 PM
I downloaded a demo from ultimategameprogramming.com that works based on time rather than frames. Well, it uses this fucntion: timeGetTime(). When I try to compile it, I get this error:
--------------------Configuration: TimeBasedCamera - Win32 Debug--------------------
Compiling...
CCamera.cpp
Linking...
CCamera.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0
Debug/TimeBasedCamera.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Creating browse info file...
TimeBasedCamera.exe - 2 error(s), 0 warning(s)
I right clicked the function and hit go to declaration. It's declared in MMSYSTEM.H which is included in windows.h. I checked the include section where my compiler is installed, but I can't find a MMSYSTEM.CPP, so I'm not sure it's ever initialized, which would cause a link error if it's not... But that would just be weird. Or do I need to link a library file or something? Unlike NeHe's demos, he doesn't include a project file. Just the cpps, which sux. And I don't think he mentions any library files in the cpp, although I admit I'm too lazy to look through the whole thing, I just searched for the words "link", "library", "libraries", and "lib". =)
Anyway, any help would be appreciated. And thanks in advance.
--------------------Configuration: TimeBasedCamera - Win32 Debug--------------------
Compiling...
CCamera.cpp
Linking...
CCamera.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0
Debug/TimeBasedCamera.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Creating browse info file...
TimeBasedCamera.exe - 2 error(s), 0 warning(s)
I right clicked the function and hit go to declaration. It's declared in MMSYSTEM.H which is included in windows.h. I checked the include section where my compiler is installed, but I can't find a MMSYSTEM.CPP, so I'm not sure it's ever initialized, which would cause a link error if it's not... But that would just be weird. Or do I need to link a library file or something? Unlike NeHe's demos, he doesn't include a project file. Just the cpps, which sux. And I don't think he mentions any library files in the cpp, although I admit I'm too lazy to look through the whole thing, I just searched for the words "link", "library", "libraries", and "lib". =)
Anyway, any help would be appreciated. And thanks in advance.