Jump to content
  • Advertisement
Sign in to follow this  
deadimp

DirectSound and Dev C++ - Problems comipling with dmusici.h (SOLVED)

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

I am having a problem compiling with the header <dmusici.h>. I get these errors:
81 C:\Dev-Cpp\include\dmdls.h declaration of `WLOOP  _DMUS_REGION::WLOOP[1]' 
264 C:\Dev-Cpp\include\dls1.h changes meaning of `WLOOP' from `typedef  struct _rloop WLOOP' 
...
1673 C:\Dev-Cpp\include\dmusici.h type specifier omitted for parameter  `VARIANT' 
What can I do to fix this? I tried replacing the <dmusici.h> and <dmdls.h> header files with the ones in the DirectX 8 library, but I still got the same error... [Edited by - deadimp on May 19, 2005 12:02:12 PM]

Share this post


Link to post
Share on other sites
Advertisement
I tried using the corrections the article made, but none of it fixed my problem...
Also, I have located the file and position where "tagVARIANT (also VARIANT)" is defined. It's in the main include directory of Dev C++, in the file "oaidl.h", around line 191.
Another question: What exactly does it mean by "type specifier omitted..."? Does it think that is the variable name?

Share this post


Link to post
Share on other sites
Quote:
Original post by deadimp
I tried using the corrections the article made, but none of it fixed my problem...
Also, I have located the file and position where "tagVARIANT (also VARIANT)" is defined. It's in the main include directory of Dev C++, in the file "oaidl.h", around line 191.
Another question: What exactly does it mean by "type specifier omitted..."? Does it think that is the variable name?


It sounds like maybe oaidl.h isn't getting included before dmusici.h tries to reference VARIANT. You might try manually including ole2.h (which should include oaidl.h) before dmusici.h. I don't know if that will help, but it should ensure that VARIANT is getting defined (unless it's dependent on some #ifdef somewhere).

Share this post


Link to post
Share on other sites
Thanks! [Rating++] I wasn't too sure if I was ever going to get this working! But yet again, thankyou!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!