hello world.
started blank project and created a c++ character but it gives me this error:
Severity | Code | Description | Project | File | Line | Suppression State | Details |
---|---|---|---|---|---|---|---|
Error (active) | E0070 | incomplete type is not allowed | SampleShooter | C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Containers\StringView.h | 408 | ||
Error (active) | E0070 | incomplete type is not allowed | SampleShooter | C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Containers\StringView.h | 415 | ||
Error (active) | E1455 | member function declared with âoverrideâ does not override a base class member | SampleShooter | C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h | 157 | ||
Error (active) | E1455 | member function declared with âoverrideâ does not override a base class member | SampleShooter | C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Core\Public\Serialization\ArchiveProxy.h | 167 |
the header file is this:
#pragma once
include âCoreMinimal.hâ
include âGameFramework/Character.hâ
include âBaseCharacter.generated.hâUCLASS()
class SAMPLESHOOTER_API ABaseCharacter : public ACharacter
{
GENERATED_BODY()public:
// Sets default values for this characterâs properties
ABaseCharacter();protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;public:
// Called every frame
virtual void Tick(float DeltaTime) override;// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;};
the cpp file is this:
include âBaseCharacter.hâ
// Sets default values
ABaseCharacter::ABaseCharacter()
{
// Set this character to call Tick() every frame. You can turn this off to improve performance if you donât need it.
PrimaryActorTick.bCanEverTick = true;}
// Called when the game starts or when spawned
void ABaseCharacter::BeginPlay()
{
Super::BeginPlay();}
// Called every frame
void ABaseCharacter::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);}
// Called to bind functionality to input
void ABaseCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
Super::SetupPlayerInputComponent(PlayerInputComponent);}
i dont see any include mistakes and the code should work.
sounds like he had the same problem:
- Unable to compile blank project - Programming & Scripting / C++ - Epic Developer Community Forums (unrealengine.com)
- Incomplete type is not allowed - Programming & Scripting / UI - Epic Developer Community Forums (unrealengine.com)
- Incomplete Type is Not Allowed - Programming & Scripting / C++ - Epic Developer Community Forums (unrealengine.com)
âŚis there any other solution besides ignoring it by using build only ?