Hi, I am a beginner of ue5, and I am following the a GAS udemy course. But After just finished one part and realdy to build my project as normal, I got the build error as below:
[3/34] Compile [x64] AuraAbilitySystemComponent.cpp
11>AbilitySystemComponent.h(118): Error C2143 : syntax error: missing ';' before '<class-head>'
11>AbilitySystemComponent.h(118): Error C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
11>AbilitySystemComponent.h(121): Error C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
11>AbilitySystemComponent.h(123): Error C2143 : syntax error: missing ';' before '<class-head>'
11>AbilitySystemComponent.h(123): Error C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
11>AbilitySystemComponent.h(126): Error C2143 : syntax error: missing ';' before '<class-head>'
11>AbilitySystemComponent.h(126): Error C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
11>AbilitySystemComponent.h(123): Error C3861 : 'FAbilityAbilityKey_DelegateWrapper': identifier not found
11>AbilitySystemComponent.h(126): Error C3861 : 'FAbilityConfirmOrCancel_DelegateWrapper': identifier not found
The error infomation is long, I can’t paste them all
And I don’t know how to fix that, even find some clues? I searched it on google but no result, one post is same to me, but he also didn’t get solution in that.
For more information, here is my Aura.Build.cs:
// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class Aura : ModuleRules
{
public Aura(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(new string[]
{
"Core", "CoreUObject", "Engine", "InputCore", "EnhancedInput", "GameplayAbilities"
});
PrivateDependencyModuleNames.AddRange(new string[] { "GameplayTags",
"GameplayTasks" });
}
}
So if you know how to fix that or just has some ideas, please let me know. Thanks.