# 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.

## 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 on other sites
Check out this article. I think it covers the problem you are having.

##### 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 on other sites
Quote:
 Original post by deadimpI 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 on other sites
Thanks! [Rating++] I wasn't too sure if I was ever going to get this working! But yet again, thankyou!

1. 1
2. 2
Rutin
18
3. 3
4. 4
5. 5

• 9
• 14
• 9
• 9
• 9
• ### Forum Statistics

• Total Topics
632922
• Total Posts
3009218
• ### Who's Online (See full list)

There are no registered users currently online

×