Archived

This topic is now archived and is closed to further replies.

HardSniper

Lesson 21...

Recommended Posts

I am trying to build lesson 21 of nehe''s tutorials, but I am getting the following errors from VC++6. Any ideas? Linking... test.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0 test.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12 Debug/lesson21_test.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. lesson21_test.exe - 3 error(s), 0 warning(s) ps. I wrote the code out myself and got this error, then tried compiling nehe''s code and got it too. Thanks, Steve

Share this post


Link to post
Share on other sites
if you''re using MSVC++ add this to the top of your winmain file:

#pragma include(lib, "winmm.lib")

if you''re using devc or any other ide i think you''ll have to manually
add the library to your project.
(it might work on borland and codewarrior)

-eldee
;another space monkey;
[ Forced Evolution Studios ]


::evolve::

''In C we had to code our own bugs. In C++ we can inherit them.''

Share this post


Link to post
Share on other sites