   Mingw and dxguid.lib
  I am currently trying to compile a sound playing program that uses direct sound and direct music.  I am having trouble...here are my error messages: .objs\C3DSound.o:C3DSound.cpp:(.text+0x1e5): undefined reference to `GUID_NULL'.objs\CDXAudio.o:CDXAudio.cpp:(.text+0x66): undefined reference to `CoInitialize@4'.objs\CDXAudio.o:CDXAudio.cpp:(.text+0xab): undefined reference to `CoCreateInstance@20'.objs\CDXAudio.o:CDXAudio.cpp:(.text+0xed): undefined reference to `CoCreateInstance@20'.objs\CDXAudio.o:CDXAudio.cpp:(.text+0x23a): undefined reference to `CoUninitialize@0'I have included dxguid.lib and dsound.a.  I had converted dsound.lib to dsound.a using reimp, but when i tried that with dxguid.lib I got two .obj files from it.  I do not know if I am missing something else, or if the compiler cannot parse dxguid.lib.  If anyone knows the solution to this, I'd appreciate an answer...or even a guess.-Sean G.-   
  Okay...I got all problems except one out of the way.  I needed to include libole32.a in order for the CoInitialize and CoUninitialize functions to operate.  I now am left with: undefined reference to `GUID_NULL' . I need to define GUID_NULL somewhere, but I don't know where.  I know that GUID_NULL is just a GUID with a blank set of elements.  I believe I can make my own in that case, but I don't know where I should put it.  ;  Okay...just for the sake of completion, I got the GUID_NULL error to dissappear just by doing: GUID GUIDnull = {0};  .  I substituted the GUID_NULL in the program for GUIDnull. That was simple.  The program, as well as any direct sound function, now works.[Edited by - compugeekpro on May 26, 2006 1:20:06 PM]