Reputation: 342
In every instance where I've created an Unreal Engine 5.1 project with C++ and build the default project, it pops up with these errors.
Severity Code Description Project File Line Suppression State
Error (active) E1835 attribute "deprecated" does not apply here Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Serialization\BulkData.h 283
Error (active) E1835 attribute "deprecated" does not apply here Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\Serialization\BulkData.h 1239
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h 381
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h 382
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h 383
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h 384
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h 409
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h 410
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h 411
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNet.h 412
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h 49
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h 55
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h 61
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h 67
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h 73
Error (active) E1455 member function declared with 'override' does not override a base class member Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h 162
Error (active) E0020 identifier "FRHIViewableResource" is undefined Learning C:\Program Files\Epic Games\UE_5.1\Engine\Source\Runtime\RHI\Public\RHI.h 2233
Error MSB3073 The command ""C:\Program Files\Epic Games\UE_5.1\Engine\Build\BatchFiles\Build.bat" LearningEditor Win64 Development -Project="C:\Users\miche\OneDrive\Documents\Unreal Projects\Learning\Learning.uproject" -WaitMutex -FromMsBuild" exited with code 6. Learning C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets 44
There's really not much else to say besides the default C++ project does not compile.
I've downloaded:
Perhaps there is something additional to download?
I'm on an Asus TUF Gaming a15 laptop running Windows 11.
What could make this compile correctly?
Upvotes: 3
Views: 8401
Reputation: 2028
It's because you're building via Visual Studio instead of Unreal Engine Editor and in the UE Editor you have live coding enabled. If you press CTRL+ALT+F11 the UE Editor - code will compile.
If you want to do the compiling via Visual Studio, turn live code off (in fact i've found it to be problematic so i leave it off a lot as if it crashes and you have a component added to a character for example the UE crashes, removing the links etc to that component - which is ergh)
Upvotes: 3