Sign in to follow this  

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

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

This topic is 4594 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this