# Error C2071: 'uint8': illegal storage class

**URL:** <https://forums.unrealengine.com/t/error-c2071-uint8-illegal-storage-class/490036>\
**Category:** Pipeline & Plugins\
**Tags:** c-build-fail, unreal-engine, question\
**Created:** [October 21, 2021, 10:55pm UTC](https://forums.unrealengine.com/t/error-c2071-uint8-illegal-storage-class/490036 "2021-10-21T22:55:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_b9b50f95d2becd85446bc1dd4a8a3799](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_b9b50f95d2becd85446bc1dd4a8a3799](https://forums.unrealengine.com/u/Anonymous_b9b50f95d2becd85446bc1dd4a8a3799)\
**Post date:** [October 21, 2021, 4:33am UTC](https://forums.unrealengine.com/t/error-c2071-uint8-illegal-storage-class/490036/1 "2021-10-21T04:33:03Z")

</div>

我错将项目中的一个.h文件写为.c文件了。（I made the mistake of writing a.h file in the project as a.c file.）

---

<div class="post-metadata">

**Author:** ![Anonymous\_b9b50f95d2becd85446bc1dd4a8a3799](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_b9b50f95d2becd85446bc1dd4a8a3799](https://forums.unrealengine.com/u/Anonymous_b9b50f95d2becd85446bc1dd4a8a3799)\
**Post date:** [October 21, 2021, 10:55pm UTC](https://forums.unrealengine.com/t/error-c2071-uint8-illegal-storage-class/490036/2 "2021-10-21T22:55:14Z")

</div>

I have the following problem when compiling a copy of the example project ActionRPG using UE4.26, Microsoft Visual Studio2019 14.29.30133:

```
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(22) : error C2143: syntax error: missing '{' before '<'
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(22) : error C2059: syntax error: '<'
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(23) : error C3856: 'SelectIntPointerType': symbol is not a class template
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(37) : error C2071: 'uint8': illegal storage class
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(40) : error C2071: 'uint16': illegal storage class
……
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\INCLUDE\xtr1common(19): error C2061: syntax error: identifier 'std'
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\INCLUDE\xtr1common(19): error C2059: syntax error: ';'
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\INCLUDE\xtr1common(19): fatal error C1003: error count exceeds 100; stopping compilation

```

When I open GenericPlatform.h, there is nothing wrong with the file. UE4 is compatible with Windows.h, and it needs to include header files

> include “AllowWindowsPlatformTypes.h”  
> or  
> include “Windows/AllowWindowsPlatformTypes.h”  
> I then included the above header file in ActionRPG.h, and the result was the same.
