Can not compile c++ code from the quickstart

I get the following error when building the quickstart guide code

1>------ Rebuild All started: Project: Printer, Configuration: Development_Editor x64 ------
1>  Cleaning PrinterEditor Binaries...
1>  Parsing headers for PrinterEditor
1>  Reflection code generated for PrinterEditor
1>  Performing 6 actions (4 in parallel)
1>  [3/6] Resource Printer.rc
1>  [2/6] Resource ModuleVersionResource.rc.inl
1>  PCH.Printer.Printer.h.cpp
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(10): error C2079: 'FComponentInstanceDataBase' uses undefined class 'DLLIMPORT'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(11): error C2143: syntax error : missing '}' before 'public'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(11): error C2143: syntax error : missing ';' before 'public'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(11): error C2059: syntax error : 'public'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(13): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(13): error C2365: 'FComponentInstanceDataBase' : redefinition; previous definition was 'data variable'
1>          D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(10) : see declaration of 'FComponentInstanceDataBase'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(14): error C2550: 'FComponentInstanceDataBase' : constructor initializer lists are only allowed on constructor definitions
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(14): warning C4508: 'FComponentInstanceDataBase' : function should return a value; 'void' return type assumed
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(16): error C2365: 'FComponentInstanceDataBase' : redefinition; previous definition was 'data variable'
1>          D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(10) : see declaration of 'FComponentInstanceDataBase'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(18): error C2588: '::~FComponentInstanceDataBase' : illegal global destructor
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(19): error C2575: 'FComponentInstanceDataBase' : only member functions and bases can be virtual
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(19): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(19): error C2365: 'FComponentInstanceDataBase' : redefinition; previous definition was 'data variable'
1>          D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(10) : see declaration of 'FComponentInstanceDataBase'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(19): warning C4508: 'FComponentInstanceDataBase' : function should return a value; 'void' return type assumed
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(21): error C2270: 'MatchesComponent' : modifiers not allowed on nonmember functions
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(23): error C2059: syntax error : 'protected'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(25): error C2146: syntax error : missing ';' before identifier 'SourceComponentName'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(29): error C2146: syntax error : missing ';' before identifier 'SourceComponentTypeSerializedIndex'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(30): error C2059: syntax error : '}'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(30): error C2143: syntax error : missing ';' before '}'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(37): error C2079: 'FComponentInstanceDataCache' uses undefined class 'DLLIMPORT'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(38): error C2143: syntax error : missing '}' before 'public'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(38): error C2143: syntax error : missing ';' before 'public'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(38): error C2059: syntax error : 'public'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(39): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(39): error C2365: 'FComponentInstanceDataCache' : redefinition; previous definition was 'data variable'
1>          D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(37) : see declaration of 'FComponentInstanceDataCache'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(39): warning C4508: 'FComponentInstanceDataCache' : function should return a value; 'void' return type assumed
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(42): error C2365: 'FComponentInstanceDataCache' : redefinition; previous definition was 'data variable'
1>          D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(37) : see declaration of 'FComponentInstanceDataCache'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(45): error C2065: 'TSharedPtr' : undeclared identifier
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(45): error C2065: 'NewData' : undeclared identifier
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(45): error C2182: 'AddInstanceData' : illegal use of type 'void'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(48): error C2270: 'ApplyToActor' : modifiers not allowed on nonmember functions
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(50): error C2270: 'HasInstanceData' : modifiers not allowed on nonmember functions
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(50): error C2065: 'TypeToDataMap' : undeclared identifier
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(50): error C2228: left of '.Num' must have class/struct/union
1>          type is 'unknown-type'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(52): error C2059: syntax error : 'private'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(54): error C2143: syntax error : missing ';' before '<'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(54): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(55): error C2059: syntax error : '}'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Engine\Public\ComponentInstanceDataCache.h(55): error C2143: syntax error : missing ';' before '}'
1>D:\Program Files\Epic Games\4.5\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h(10): fatal error C1189: #error :  "STATS must be defined as either zero or one."
1>  -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: D:\UnrealProjects\Printer\Binaries\Win64\UE4Editor-Printer.dll
1>  Cumulative action seconds (4 processors): 0.00 building projects, 0.31 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.00 linking, 0.00 other
1>  UBT execution time: 7.70 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(43,5): error MSB3073: The command ""D:\Program Files\Epic Games\4.5\Engine\Build\BatchFiles\Rebuild.bat" PrinterEditor Win64 Development "D:\UnrealProjects\Printer\Printer.uproject" -rocket" exited with code 2.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Any idea of what’s going on