# Syntax Error Compiling Struct with UPROPERTY ("missing type specifier")

**URL:** <https://forums.unrealengine.com/t/syntax-error-compiling-struct-with-uproperty-missing-type-specifier/366671>\
**Category:** Platform & Builds\
**Tags:** build, unreal-engine, CPP, question\
**Created:** [August 10, 2016, 12:46am UTC](https://forums.unrealengine.com/t/syntax-error-compiling-struct-with-uproperty-missing-type-specifier/366671 "2016-08-10T00:46:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fnor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fnor](https://forums.unrealengine.com/u/fnor)\
**Post date:** [August 10, 2016, 12:46am UTC](https://forums.unrealengine.com/t/syntax-error-compiling-struct-with-uproperty-missing-type-specifier/366671/1 "2016-08-10T00:46:40Z")

</div>

I am trying to get around the lack of multidimensional arrays by making an array of a custom, two-member struct. however, VS2015 keeps giving me an error around UPROPERTY. I have no idea what the issue is, as I replicated the unreal-specific code from tutorials I found on the site. Is there something in the USTRUCT/UPROPERTY syntax I messed up?

Rebuild log and code attached.

---

<div class="post-metadata">

**Author:** ![PasteDog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PasteDog](https://forums.unrealengine.com/u/PasteDog)\
**Post date:** [August 10, 2016, 8:30am UTC](https://forums.unrealengine.com/t/syntax-error-compiling-struct-with-uproperty-missing-type-specifier/366671/2 "2016-08-10T08:30:22Z")

</div>

Hey,

Did you try to regenerate the project files?  
To do this rightclick your **.uproject** file and click on **generate VS project files**.  
I also think you are missing the `#include "yourfilename.generated.h"` at the top of your header file.

Hope this helps 🙂  
Elias

---

<div class="post-metadata">

**Author:** ![fnor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fnor](https://forums.unrealengine.com/u/fnor)\
**Post date:** [August 14, 2016, 12:05am UTC](https://forums.unrealengine.com/t/syntax-error-compiling-struct-with-uproperty-missing-type-specifier/366671/3 "2016-08-14T00:05:24Z")

</div>

Works! Thanks!
