Jump to content
  • Advertisement

Archived

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

ATronic

DirectSound Link Error

This topic is 5759 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

Hi, I get the following link error when compiling a project using DirectSound. I successfully use DirectInput. The error is:
  dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800
dinput.h line 43   essage(__FILE__ ": DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800")

Error   : Undefined symbol: ''__declspec(dllimport) __stdcall(20) CoCreateInstance (__imp__CoCreateInstance@20)''
referenced from ''bool CAudioSystem::InitDirectXAudio(struct HWND__ *) (?InitDirectXAudio@CAudioSystem@@QAE_NPAUHWND__@@@Z)'' in AudioSystem.cpp:64
referenced from ''bool CAudioSystem::InitDirectXAudio(struct HWND__ *) (?InitDirectXAudio@CAudioSystem@@QAE_NPAUHWND__@@@Z)'' in AudioSystem.cpp:73
AudioSystem.cpp line 64  
on the following line:
  if (FAILED(CoCreateInstance(CLSID_DirectMusicLoader, NULL, CLSCTX_INPROC,
						   IID_IDirectMusicLoader8, (void**)&dmusicLoader)))  
Any help would be greatly appreciated. Alex Broadwin A-Tronic Software & Design ----- "if you fail in life, you were destined to fail. If you suceed in life, call me." "The answer is out there." "Please help, I''m using Windows!"

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!