Archived

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

Julio

directsound question

Recommended Posts

Julio    116
ok, I''m writing a game using opengl. since opengl doesn''t have sound support, I''m using DirectSound. I''m pretty new to directsound. could someone tell me what these linker errors mean? 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 thanks, Joe

Share this post


Link to post
Share on other sites
The_[PI]_ehT    122
Well, these functions don''t actually belong to DirectSound, they''re part of the Windows Multimedia Library. So you have to add "winmm.lib" to the link lib list (Project->Settings->Link).
Also you should include mmsystem.h in the file in which you call the mmio functions.

Hope this helps
pi~

Share this post


Link to post
Share on other sites