I made the FPS tutorial and at the point where i spawn an actor for shooting i got this build errors. i then commented everything out. so now i got multiple empty classes but the compile error still stays. Maybe Engine.h or something important is missing? When i build other projects it is working but this is not a real solution. to make a new project and move everything from one to another…
1>------ Build started: Project: cpp_test_blank, Configuration: DebugGame_Editor x64 ------
1> Parsing headers for cpp_test_blankEditor
1> Code generation finished for cpp_test_blankEditor and took 1,738
1> PCH.cpp_test_blank.cpp_test_blank.h.cpp
1>C:\Program Files\Unreal Engine\4.1\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(444): error C2079: ‘FReferencerInformation::ReferencingProperties’ uses undefined class ‘TArray’
1>C:\Program Files\Unreal Engine\4.1\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(452): error C2079: ‘FReferencerInformationList::InternalReferences’ uses undefined class ‘TArray’
1>C:\Program Files\Unreal Engine\4.1\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(453): error C2079: ‘FReferencerInformationList::ExternalReferences’ uses undefined class ‘TArray’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(22): error C2065: ‘UClass’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(22): error C2065: ‘Class’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(22): error C2065: ‘InOuter’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(22): error C2275: ‘UObject’ : illegal use of this type as an expression
1> C:\Program Files\Unreal Engine\4.1\Engine\Source\Runtime\Core\Public\Misc\DateTime.h(10) : see declaration of ‘UObject’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(22): error C2065: ‘FName’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(22): error C2146: syntax error : missing ‘)’ before identifier ‘InName’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(22): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(34): error C2065: ‘UClass’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(34): error C2065: ‘ObjectClass’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(34): error C2065: ‘FName’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(34): error C2146: syntax error : missing ‘)’ before identifier ‘ObjectName’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(34): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectHash.h(52): error C2061: syntax error : identifier ‘FName’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(10): error C2065: ‘LogUObjectGlobals’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(10): error C2065: ‘Log’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(10): error C2065: ‘All’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(10): error C2491: ‘DECLARE_LOG_CATEGORY_EXTERN’ : definition of dllimport data not allowed
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(10): error C2078: too many initializers
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(12): error C2065: ‘STAT_ConstructObject’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(12): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(12): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(13): error C2065: ‘STAT_AllocateObject’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(13): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(13): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(14): error C2065: ‘STAT_PostConstructInitializeProperties’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(14): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(14): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(15): error C2065: ‘STAT_LoadConfig’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(15): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(15): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(16): error C2065: ‘STAT_LoadObject’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(16): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(16): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(17): error C2065: ‘STAT_FindObject’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(17): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(17): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(18): error C2065: ‘STAT_FindObjectFast’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(18): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(18): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(19): error C2065: ‘STAT_InitProperties’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(19): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(19): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(20): error C2065: ‘STAT_NameTableEntries’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(20): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(20): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(21): error C2065: ‘STAT_NameTableAnsiEntries’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(21): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(21): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(22): error C2065: ‘STAT_NameTableWideEntries’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(22): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(22): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(23): error C2065: ‘STAT_NameTableMemorySize’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(23): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(23): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(24): error C2065: ‘STAT_DestroyObject’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(24): error C2065: ‘STATGROUP_Object’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(24): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(30): error C2065: ‘STAT_NetSerializeFast_Array’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(30): error C2065: ‘STATGROUP_ServerCPU’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(30): error C2059: syntax error : ‘__declspec(dllimport)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(37): error C2065: ‘FFrame’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(37): error C2065: ‘TheStack’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(37): error C2065: ‘RESULT_DECL’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(37): error C2182: ‘Native’ : illegal use of type ‘void’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(37): error C2513: 'int UObject::* ’ : no variable declared before ‘=’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(59): error C2065: ‘TInlineAllocator’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(59): error C2974: ‘TArray’ : invalid template argument for ‘Allocator’, type expected
1> C:\Program Files\Unreal Engine\4.1\Engine\Source\Runtime\Core\Public\Core.h(16) : see declaration of ‘TArray’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(59): warning C4091: 'extern ’ : ignored on left of ‘TArray’ when no variable is declared
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(59): error C2143: syntax error : missing ‘;’ before ‘>’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(59): error C2059: syntax error : ‘>’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(87): error C2146: syntax error : missing ‘;’ before identifier ‘DestName’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(87): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(119): error C2143: syntax error : missing ‘;’ before ‘<’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(119): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(119): error C2238: unexpected token(s) preceding ‘;’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(126): error C2143: syntax error : missing ‘;’ before ‘<’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(126): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(126): error C2238: unexpected token(s) preceding ‘;’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(136): error C2143: syntax error : missing ‘;’ before ‘’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(136): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(153): error C2061: syntax error : identifier ‘FName’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(186): error C2061: syntax error : identifier ‘UPackageMap’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(187): error C2061: syntax error : identifier ‘UPackageMap’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(205): error C2061: syntax error : identifier ‘FName’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(240): error C2065: ‘GLog’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(251): error C2143: syntax error : missing ‘;’ before '’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(251): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(251): error C2065: ‘InOuter’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(251): error C2059: syntax error : ‘const’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(258): error C2065: ‘FLoadPackageAsyncDelegate’ : undeclared identifier
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(258): error C2059: syntax error : ‘const’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(270): error C2143: syntax error : missing ‘;’ before ‘&’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(270): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(270): error C2061: syntax error : identifier ‘FLoadPackageAsyncDelegate’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(281): error C2143: syntax error : missing ‘;’ before ‘&’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(281): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(281): error C2061: syntax error : identifier ‘FName’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(329): error C2146: syntax error : missing ‘;’ before identifier ‘MakeUniqueObjectName’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(329): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(329): error C2061: syntax error : identifier ‘FName’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(341): error C2146: syntax error : missing ‘;’ before identifier ‘MakeObjectNameFromActorLabel’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(341): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(341): error C2146: syntax error : missing ‘,’ before identifier ‘CurrentObjectName’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(359): error C2146: syntax error : missing ‘)’ before identifier ‘ExcludeType’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(359): error C2182: ‘FlushAsyncLoading’ : illegal use of type ‘void’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(359): error C2491: ‘FlushAsyncLoading’ : definition of dllimport data not allowed
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(359): error C2059: syntax error : ‘)’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(403): error C2061: syntax error : identifier ‘FName’
1>c:\program files\unreal engine\4.1\engine\source\runtime\coreuobject\public\uobject\UObjectGlobals.h(403): fatal error C1003: error count exceeds 100; stopping compilation
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: E:\UNREAL_TEST\cpp_test_blank\Binaries\Win64\UE4Editor-cpp_test_blank-Win64-DebugGame.dll
1> Cumulative action seconds (8 processors): 0,00 building projects, 0,30 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,00 linking, 0,00 other
1> UBT execution time: 5,18 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ““C:\Program Files\Unreal Engine\4.1\Engine\Build\BatchFiles\Build.bat” cpp_test_blankEditor Win64 DebugGame “E:\UNREAL_TEST\cpp_test_blank\cpp_test_blank.uproject” -rocket” exited with code -1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========