"missing type specifier" compiler errors

I’m getting 3 errors after moving a function to public , but the errors are for different line:

error C2143: syntax error: missing ‘;’ before ‘*’

error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2238: unexpected token(s) preceding ‘;’
My projectile.h:

// Fill out your copyright notice in the Description page of Project Settings. - Pastebin.com

The error is for line:

UProjectileMovementComponent* MovementComp;
edit:sorry for the formatting , but the code block seems to not be working, I moved the code sample to pastebin

Are you using VS with the error window? Try the output window, the errors are far more verbose.

Did you add the UPROPERTY macro to the variable when you moved it to public? Does it work if you remove it?

You might try including the PMC header in your header:

Runtime/Engine/Classes/GameFramework/ProjectileMovementComponent.h

I found the answer: aparently includeing Engine.h in.cpp file stopped working (I have no idea why) and had to change Engineminimal to Engine in Game.h