# Error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

**URL:** <https://forums.unrealengine.com/t/error-c4430-missing-type-specifier-int-assumed-note-c-does-not-support-default-int/487372>\
**Category:** Editor Scripting\
**Tags:** error, Struct, ustruct, unreal-engine, CPP, question\
**Created:** [August 12, 2021, 9:51pm UTC](https://forums.unrealengine.com/t/error-c4430-missing-type-specifier-int-assumed-note-c-does-not-support-default-int/487372 "2021-08-12T21:51:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/samathan/32/1058905_2.png) [@Samathan](https://forums.unrealengine.com/u/Samathan)\
**Post date:** [August 12, 2021, 9:51pm UTC](https://forums.unrealengine.com/t/error-c4430-missing-type-specifier-int-assumed-note-c-does-not-support-default-int/487372/1 "2021-08-12T21:51:07Z")

</div>

**Edit: This turned out to be a problem caused by Unreal not including the .generated file when creating the class. I added it in manually and it works fine.**

I’m trying to define a ustruct in C++ with this code:

```
USTRUCT(BlueprintType)
struct FBoardCoordinate
{
	GENERATED_USTRUCT_BODY()

public:

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	int32 Row;

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	FString Column;
};

```

But I keep getting this error:

```
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

```

Does anyone know what the problem is?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![DevinSherry](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/devinsherry/32/1101099_2.png) [@DevinSherry](https://forums.unrealengine.com/u/DevinSherry)\
**Post date:** [August 13, 2021, 7:57am UTC](https://forums.unrealengine.com/t/error-c4430-missing-type-specifier-int-assumed-note-c-does-not-support-default-int/487372/2 "2021-08-13T07:57:49Z")

</div>

Hi,

I was able to successfully copy/paste your snippet of code into my own project on 4.26.2, as well as in a fresh C++ project using engine version 4.25.4,and both compiled successfully. Is there any more information you can provide us here? Is there any more code within this file that you can provide us?

Here is a similiar thread to this issue that might be useful as well: [https://answers.unrealengine.com/questions/301484/missing-type-specifier-int-assumed.html](https://answers.unrealengine.com/questions/301484/missing-type-specifier-int-assumed.html)

---

<div class="post-metadata">

**Author:** ![Samathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/samathan/32/1058905_2.png) [@Samathan](https://forums.unrealengine.com/u/Samathan)\
**Post date:** [August 15, 2021, 5:37pm UTC](https://forums.unrealengine.com/t/error-c4430-missing-type-specifier-int-assumed-note-c-does-not-support-default-int/487372/3 "2021-08-15T17:37:41Z")

</div>

Thanks for the reply, but I finally fixed it, and it turns out, Unreal didn’t include the .generated file when I created the class. I added it manually and now it works.

---

<div class="post-metadata">

**Author:** ![shue\_it](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shue\_it](https://forums.unrealengine.com/u/shue_it)\
**Post date:** [May 9, 2025, 2:06pm UTC](https://forums.unrealengine.com/t/error-c4430-missing-type-specifier-int-assumed-note-c-does-not-support-default-int/487372/4 "2025-05-09T14:06:20Z")

</div>

Another possibility, especially if you encounter both Error C4430 and C2039 together like that :

```auto
MyClass.h(41): Error C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
MyClass.gen.cpp(83): Error C2039 : 'StaticStruct': is not a member of 'FSomething'
MyClass.h(39): Reference : see declaration of 'FSomething'

```

Check if you’re including the **generated.h file**!

```c++
#include "MyClass.generated.h"

```

Most of the time, your IDE will write this line for you so you won’t encounter this problem, but sometimes you switch from pure C++ to Unreal C++, and tends to forget this kind of things (and it’s pain to find the answer you need in those situations).

(I’m reviving this thread because it’s the first google result when looking for this problem)
