Skip to main content
GameDev.net gamedev.net
🔒 Locked

Problem compiling DirectMusic program

Started by igamemkr Dec 26, 2001 at 3:56 PM 4 replies 500+ views
Original Post
igamemkr
igamemkr
I''m having some trouble getting my directmusic program file to compile. When I try to compile it shows me a bunch of messages saying there are errors in the DMusic header files. Here is what is outputed by the compiler: ----------------------------------------------------------------- [C++Error] dmusici.h(284): Unexpected end of file in comment started on line 283. [C++Error] dmusici.h(285): Unexpected end of file in conditional started on line 10. [C++Warning] dmusici.h(285): Structure packing size has changed. [C++Error] Timer2MainForm.cpp(23): Enum syntax error. [C++Error] Timer2MainForm.cpp(51): Undefined symbol ''CLSID_DirectMusicLoader''. [C++Error] Timer2MainForm.cpp(52): Undefined symbol ''IID_IDirectMusicLoader8''. [C++Error] Timer2MainForm.cpp(53): Undefined symbol ''CLSID_DirectMusicPerformance''. [C++Error] Timer2MainForm.cpp(54): Undefined symbol ''IID_IDirectMusicPerformance8''. [C++Error] Timer2MainForm.cpp(55): ''InitAudio'' is not a member of ''IDirectMusicPerformance8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(59): ''SetSearchDirectory'' is not a member of ''IDirectMusicLoader8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(59): Undefined symbol ''GUID_DirectMusicAllTypes''. [C++Error] Timer2MainForm.cpp(169): ''LoadObjectFromFile'' is not a member of ''IDirectMusicLoader8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(169): Undefined symbol ''CLSID_DirectMusicSegment''. [C++Error] Timer2MainForm.cpp(170): Undefined symbol ''IID_IDirectMusicSegment8''. [C++Error] Timer2MainForm.cpp(173): ''Download'' is not a member of ''IDirectMusicSegment8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(293): ''PlaySegmentEx'' is not a member of ''IDirectMusicPerformance8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(479): ''Stop'' is not a member of ''IDirectMusicPerformance8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(480): ''CloseDown'' is not a member of ''IDirectMusicPerformance8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(483): ''Release'' is not a member of ''IDirectMusicLoader8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(484): ''Release'' is not a member of ''IDirectMusicPerformance8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(486): ''Release'' is not a member of ''IDirectMusicSegment8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(489): ''Release'' is not a member of ''IDirectMusicSegment8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(492): ''Release'' is not a member of ''IDirectMusicSegment8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(495): ''Release'' is not a member of ''IDirectMusicSegment8'', because the type is not yet defined. [C++Error] Timer2MainForm.cpp(498): ''Release'' is not a member of ''IDirectMusicSegment8'', because the type is not yet defined. [C++Warning] Timer2MainForm.cpp(508): Structure packing size has changed. [C++Error] Timer2MainForm.cpp(508): } expected. [C++Error] Timer2MainForm.cpp(508): Too many error or warning messages. ---------------------------------------------------------------- I can''t figure out what is wrong here I appreciate any help any body can give me. Thanks! Jesus is knocking at the door of your heart, won''''t you let him in?
wazoo69
wazoo69
have you included dsound.h and dshow.h in your app as well??
try including windows.h BEFORE anything else..sometimes this has been the only answer to weird compiling errors I get..

do you include the dxguid.lib in your linking??

igamemkr
igamemkr
I tried adding windows.h first and including the dsound and dshow headers,but it still doesn''t compile for some odd reason.
I''m using Borland''s C++Builder and the VCL, I don''t know if that would make any difference.
igamemkr
igamemkr
Thanks for the help, wazoo69, I''ll try searching gamedev.net or google.

Topic Locked

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

Sign in to reply to this topic.