我正在使用XAudio2运行SteamWorksExample游戏,以查看如何在基于C++的游戏中包括蒸汽组件,我使用的是Windows 10,但当我运行代码时,我得到了以下错误:
“此版本的XAudio2仅在Windows8或更高版本中可用。对于针对Windows7和更早版本的应用程序,请使用DirectX SDK中的XAudio2标头和库。”
我查了源文件,上面有:
#if(_WIN32_WINNT < _WIN32_WINNT_WIN8) #error "This version of XAudio2 is available only in Windows 8 or later. Use the XAudio2 headers and libraries from the DirectX SDK with applications that target Windows 7 and earlier versions." #endif // (_WIN32_WINNT < _WIN32_WINNT_WIN8)
我怎样才能解决这个错误?
发布于 2020-08-22 11:07:53
检查您的VC++目录,如果它们是这样的:
包含目录:$(IncludePath);$(DXSDK_DIR)包括
包括库目录:$(LibraryPath);$(DXSDK_DIR)Lib\x86
删除它们。
就我而言,它解决了问题
https://stackoverflow.com/questions/63535031
复制相似问题