0

我正在尝试在游戏项目中包含 xact3.h 头文件,但我不断收到一些与 mmreg.h 相关的错误

#include <xact3.h>
#include <Windows.h>

1>c:\program files\windows kits\8.0\include\shared\mmreg.h(2469): error C2332: 'struct' : missing tag name
1>c:\program files\windows kits\8.0\include\shared\mmreg.h(2469): warning C4094: untagged 'struct' declared no symbols
1>c:\program files\windows kits\8.0\include\shared\mmreg.h(2469): error C2143: syntax error : missing ';' before '__uuidof'
1>c:\program files\windows kits\8.0\include\shared\mmreg.h(2469): error C2059: syntax error : '__uuidof'
1>c:\program files\windows kits\8.0\include\shared\mmreg.h(2470): warning C4005: 'KSDATAFORMAT_SUBTYPE_PCM' : macro redefinition

以上是我得到的一些错误。如果相关,我正在使用 Windows 8。我已经尝试了很多东西,比如定义 WIN32_LEAN_AND_MEAN 或重新排列标题但没有成功。有人可以告诉我可能是什么问题,我该如何解决?

4

1 回答 1

0

设法通过在 xact3 标头上方添加 XAudio2 标头来解决它

于 2013-05-11T21:13:29.327 回答