Archived

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

neonoblivion

wav loading problem

Recommended Posts

I''m following the instructions for loading a wav file found in totwgpg but when I compile it I get the error,
  
--------------------Configuration: openglgame - Win32 Debug--------------------
Compiling...
main.cpp
Linking...
main.obj : error LNK2001: unresolved external symbol __imp__mmioAscend@12
main.obj : error LNK2001: unresolved external symbol __imp__mmioRead@12
main.obj : error LNK2001: unresolved external symbol __imp__mmioClose@8
main.obj : error LNK2001: unresolved external symbol __imp__mmioDescend@16
main.obj : error LNK2001: unresolved external symbol __imp__mmioOpenA@12
Debug/openglgame.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.

openglgame.exe - 6 error(s), 0 warning(s)
  
I tryed includeing every thing listed in the source file but it does not work please help

Share this post


Link to post
Share on other sites
make sure you have mmsystem.h included of course, and link with winmm.lib.

Always remember, you''''re unique. Just like everyone else.

Share this post


Link to post
Share on other sites