Download

Problem with static function declaration

Trying to make an object with static functions but as soon as I add ‘static’ to any function declaration I get this error:
-waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.


UCLASS()
class THEALCHEMIST_VR_API UAlchemy : public UObject
{
	GENERATED_BODY()

	TArray<FRecipe> recipes;

	UAlchemy(const FObjectInitializer& ObjectInitializer);	

	UFUNCTION(BlueprintCallable, Category = "Alchemy")
	int RecipeCount();
	//this
	static void GenerateRecipes();

};

using 4.15/4.16 and vs community 2017

That has nothing to do with using “static.” I think it would happen when you make another change that requires re-generation, and it means your install is somehow not correct.

Sort of I suspected that, sometimes I get same error after altering anything, like adding a line of comment and have to clean project before every build to get rid of it.
Sad part is that I just downloaded new engine version and installed vs 2017 because it was the same in vs 2015