Error 'Classname': is not a class or namespace name

I’m following this guide (Part 2 - GAS Setup | Elden Ring/Soulslike GAS in Unreal Engine 5 - YouTube) on how to add Ability System.

The lines look like this:

image

When running the Windows debugger I get the following error:

1>D:\Redacted\Redacted\Source\Redacted\RuneAttributeSet.h(30): error C2653: ‘Classname’: is not a class or namespace name
1>D:\Redacted\Redacted\Source\Redacted\RuneAttributeSet.h(30): error C2065: ‘Classname’: undeclared identifier

I saw another post saying that moving the header file from “Classes” to any other folder should fix it but this RuneAttributeSet.h its not in “Classes” folder but in ProjectName\Source\ProjectName.

Any ideas?

This topic has been moved from International to Programming & Scripting: C++.

When posting, please review the categories to ensure your topic is posted in the most relevant space. Hopefully, this new category helps you to get an answer.

Meanwhile, good luck and happy developing! :slight_smile: