I'm trying to work with DirectSound but it wont intitialize the COM objects
#include <unknwn.h> #include <objbase.h> #include <dsound.h> // tried this alone, didnt work either just points the error back to objbase.h
void main() { // simple huh? should work right?! }
but this is the first of 20+ errors I get:
27 C:\Dev-Cpp\include\unknwn.h `com_interface' only supported with -fvtable-thunks
At the risk of asking a sub-moronically stupid question here, have you tried fixing the first error by adding
-fvtable-thunks
to your compiler command line options?
Wayne
Log in to post a comment.
I'm trying to work with DirectSound but it wont intitialize the COM objects
#include <unknwn.h>
#include <objbase.h>
#include <dsound.h> // tried this alone, didnt work either just points the error back to objbase.h
void main()
{
// simple huh? should work right?!
}
but this is the first of 20+ errors I get:
27 C:\Dev-Cpp\include\unknwn.h
`com_interface' only supported with -fvtable-thunks
At the risk of asking a sub-moronically stupid question here, have you tried fixing the first error by adding
-fvtable-thunks
to your compiler command line options?
Wayne