Skip to main content
gamedev.net
🔒 Locked

help, linker error

Started by dark_angel09 Nov 28, 2001 at 6:39 PM 1 replies 450+ views
Original Post
dark_angel09
dark_angel09
Hey, im trying to learn DX8, i have a book on it and im trying to compile the source code, but i keep getting this linker error Timer.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0 its very frustrating, ive tried to compile from scratch in a new project several times, any suggestions?, thanks, Matt "kill one and your a murderer, kill thousands and your a conquerer"
------------------------------"kill one and your a murderer, kill thousands and your a conquerer""We must move forwards not backwards, upwards not forwards, and always twirling, twirling towards freedom."
merlin9x9
merlin9x9
To use the function timeGetTime, you must link with winmm.lib. In your project settings for all builds (you may have to do this individually), add winmm.lib to the module list in the Link tab. Then build, and all should be well. If you look up any of these functions in MSDN or the appropriate documentation, it''ll tell you which header to include and which import library to use. So, keep that in mind the next time you get errors like that.
Fruny
Fruny

if (!Found(function,IncludedLibraries)) throw( LinkerError );

Look in the function''s help page to find which one.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.