我最近下载了UE4,无法打开C ++类。当我创建项目时,会显示:
Running C:/Program Files (x86)/Epic Games/4.10/Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject6 Development Win64 -project="C:/Users/Daniel/Documents/Unreal Projects/MyProject6/MyProject6.uproject" -rocket -editorrecompile -progress -noubtmakefiles -2015
@progress push 5%
Parsing headers for MyProject6Editor
Running UnrealHeaderTool "C:/Users/Daniel/Documents/Unreal Projects/MyProject6/MyProject6.uproject" "C:\Users\Daniel\Documents\Unreal Projects\MyProject6\Intermediate\Build\Win64\MyProject6Editor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -rocket -installed
Reflection code generated for MyProject6Editor in 11,6497437 seconds
@progress pop
Performing 7 actions (4 in parallel)
[2/7] Resource PCLaunch.rc
[3/7] Resource ModuleVersionResource.rc.inl
PCH.MyProject6.h.cpp
MyProject6.cpp
MyProject6GameMode.cpp
MyProject6.generated.cpp
C:\Users\Daniel\Documents\Unreal Projects\MyProject6\Source\MyProject6\MyProject6GameMode.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled headerC:\Users\Daniel\Documents\Unreal Projects\MyProject6\Source\MyProject6\MyProject6.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header
C:\Users\Daniel\Documents\Unreal Projects\MyProject6\Intermediate\Build\Win64\UE4Editor\Inc\MyProject6\MyProject6.generated.cpp: error C4599: '/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE': command line argument number 228 does not match precompiled header
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: C:\Users\Daniel\Documents\Unreal Projects\MyProject6\Binaries\Win64\UE4Editor-MyProject6.dll
Total build time: 100,66 seconds
任何想法出了什么问题? 谢谢你的帮助。
答案 0 :(得分:0)
您的游戏模式源文件包含以某种方式不正确的标头。我看到对第228行的引用,但我不确定它是在您的游戏模式中还是在包含的标题中。