c++, character can't run (For some reason)

Hi, I have been trying to come back to c++ coding but, for some reason a script that I have always used, wont work anymore.

GetCharacterMovement()->MaxWalkSpeed = runningSpeed;

It is complaining about “pointer to incomplete class type not allowed”. Can someone tell me whats wrong. Have Epic changed the way to change speed?

include this in the .cpp
#include “GameFramework/CharacterMovementComponent.h”

and forward-declare UCharacterMovementComponent in the .h like this
class UCharacterMovementComponent;

Does your c++ code compile when you disable Intellisense of Visual Studio? This error appears to me often because intellisense doesn’t work well without some configuations.

Ok I’m stupid. It was a header that was missing. thanks alot Ninja_K