Skip to main content
gamedev.net
🔒 Locked

Direct Sound

Started by Enalis 3 replies 600+ views
Original Post
Enalis
Enalis
When i compile a tutorial from nehe''s point click and listen tutorial i get some link errors...: udio.obj : error LNK2001: unresolved external symbol _GUID_DirectMusicAllTypes audio.obj : error LNK2001: unresolved external symbol _CLSID_DirectMusicPerformance audio.obj : error LNK2001: unresolved external symbol _IID_IDirectMusicPerformance8 audio.obj : error LNK2001: unresolved external symbol _CLSID_DirectMusicLoader audio.obj : error LNK2001: unresolved external symbol _IID_IDirectMusicLoader8 audio.obj : error LNK2001: unresolved external symbol _CLSID_DirectMusicSegment audio.obj : error LNK2001: unresolved external symbol _IID_IDirectMusicSegment8 Debug/current projects.exe : fatal error LNK1120: 7 unresolved externals ........ It''s refering to the direct sound initialization, more speicifically the com initialization! What do i do to get rid of these???????????????????????? Thanks~Doug
Douglas Eugene Reisinger II
Projects/Profile Site
GoofProg
GoofProg
Try to add #define INITGUID add the first line of your code.
The nightmare travels across the cosmos with his burning mane.  The trail of ash that is produced. ?Have a nice day!?
Lukerd
Lukerd
Make sure you''re linking to dxguid.lib. Put this in you''re code:

  
#pragma comment (lib, "dxguid.lib")




"To err is human, to really mess up requires a computer"
"To err is human, to really mess up requires a computer"
Enalis
Enalis
None of that worked but i appriciate the thought you put in greatfully! I had it working before but i reloaded my machine and had to rereference everything, maybe i messed that up? Can someone tell me what they tell vc++ to look for and where?
Douglas Eugene Reisinger II
Projects/Profile Site
Enalis
Enalis
I got it... I included dxguid in my resources
Thanks to everyone~ Doug
Douglas Eugene Reisinger II
Projects/Profile Site

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.