C++ vs2015 导入sapi.h 时和原有代码出现冲突 怎么解决?
wzqnn 2016-11-10 09:23:33 C++ vs2015 导入sapi.h 时和原有代码(UE4的还有原有类库的)出现冲突 求大神帮忙解决!
1>------ 已启动生成: 项目: MySpeak, 配置: Development_Editor x64 ------
1> Performing 2 actions (4 in parallel)
1> MyActor.cpp
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(396): error C2872: “DWORD”: 不明确的符号
1> C:\Program Files (x86)\Windows Kits\8.1\include\shared\minwindef.h(156): note: 可能是“unsigned long DWORD”
1> c:\program files (x86)\epic games\4.12\engine\source\runtime\core\public\Misc/DisableOldUETypes.h(34): note: 或 “DoNotUseOldUE4Type::DWORD”
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(438): error C2872: “DWORD”: 不明确的符号
1> C:\Program Files (x86)\Windows Kits\8.1\include\shared\minwindef.h(156): note: 可能是“unsigned long DWORD”
1> c:\program files (x86)\epic games\4.12\engine\source\runtime\core\public\Misc/DisableOldUETypes.h(34): note: 或 “DoNotUseOldUE4Type::DWORD”
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(457): error C2872: “DWORD”: 不明确的符号
1> C:\Program Files (x86)\Windows Kits\8.1\include\shared\minwindef.h(156): note: 可能是“unsigned long DWORD”
1> c:\program files (x86)\epic games\4.12\engine\source\runtime\core\public\Misc/DisableOldUETypes.h(34): note: 或 “DoNotUseOldUE4Type::DWORD”
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(639): error C2872: “DWORD”: 不明确的符号
1> C:\Program Files (x86)\Windows Kits\8.1\include\shared\minwindef.h(156): note: 可能是“unsigned long DWORD”
1> c:\program files (x86)\epic games\4.12\engine\source\runtime\core\public\Misc/DisableOldUETypes.h(34): note: 或 “DoNotUseOldUE4Type::DWORD”
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(656): error C2872: “DWORD”: 不明确的符号
1> C:\Program Files (x86)\Windows Kits\8.1\include\shared\minwindef.h(156): note: 可能是“unsigned long DWORD”
1> c:\program files (x86)\epic games\4.12\engine\source\runtime\core\public\Misc/DisableOldUETypes.h(34): note: 或 “DoNotUseOldUE4Type::DWORD”
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(657): error C2872: “DWORD”: 不明确的符号
1> C:\Program Files (x86)\Windows Kits\8.1\include\shared\minwindef.h(156): note: 可能是“unsigned long DWORD”
1> c:\program files (x86)\epic games\4.12\engine\source\runtime\core\public\Misc/DisableOldUETypes.h(34): note: 或 “DoNotUseOldUE4Type::DWORD”
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(663): error C2872: “DWORD”: 不明确的符号
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(663): fatal error C1003: 错误计数超过 100;正在停止编译
1>ERROR : UBT error : Failed to produce item: G:\UE4\MySpeak\Binaries\Win64\UE4Editor-MySpeak.pdb
1> Total build time: 3.48 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: 命令“"C:\Program Files (x86)\Epic Games\4.12\Engine\Build\BatchFiles\Build.bat" MySpeakEditor Win64 Development "G:\UE4\MySpeak\MySpeak.uproject" -waitmutex”已退出,代码为 5。请验证您是否有足够的权限来运行此命令。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========