C++ USTRUCT build problems

I am trying to create a simple USTRUCT that includes multiple property values.
For testing, I created a dummy struct looking like this:

USTRUCT()
struct FSomeInformationStruct
{
	GENERATED_BODY()
	UPROPERTY()
	int32 someInt;

	//Constructor
	FSomeInformationStruct()
	{
		someInt = 5;
	}
};

Building the solution with VS2017 Community, I run into several errors (see below). I later copy-pasted the USTRUCT example code by Rama which resulted in the same errors
[(code here in the Core Syntax section)][1]

I looked through multiple other tutorials and could not find what is wrong with my usage of USTRUCT. Still, looking at the errors it seems to me as if I understood it wrong. Since I just started using C++ aside of Blueprints, I do not have much experience so far.

I also tried restarting VS, UE Editor and the PC.

Errors (lines match 1:1 with provided code above):

I feel very bad posting this now: I just saw that I forgot to include the .generated.h on top of my header file.

Still, thank you very much for helping a C++ Newbie like me.

No problem, I assumed it was a structure issue of some sort. I will delete my answer and you can post exactly what was the solution. Might help someone else.

There were 2 problems with my code:

  1. I needed to include the “generated” fiile ([filename].generated.h) at the beginning of the header file
  2. Using a separate header file did not work, I needed to put this struct in the project header file ([projectName].h)

The following code works for me (stored in the file “AztecsProject.h”):

#pragma once

#include "AztecsProject.generated.h"

USTRUCT()
struct FSomeInformationStruct
{
	GENERATED_BODY();
public:
	UPROPERTY()
		int32 someInt;

	//Constructor
	FSomeInformationStruct()
	{
		someInt = 5;
	}
};