• Advertisement

Archived

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

directsound question

This topic is 6425 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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

  • Advertisement