# How to Make Global Functions and Structs?

**URL:** <https://forums.unrealengine.com/t/how-to-make-global-functions-and-structs/319560>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 23, 2015, 7:40pm UTC](https://forums.unrealengine.com/t/how-to-make-global-functions-and-structs/319560 "2015-05-23T19:40:13Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![jcastro0x](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jcastro0x/32/885680_2.png) [@jcastro0x](https://forums.unrealengine.com/u/jcastro0x)\
**Post date:** [April 22, 2017, 3:21am UTC](https://forums.unrealengine.com/t/how-to-make-global-functions-and-structs/319560/11 "2017-04-22T03:21:56Z")

</div>

Hi Moss! 🙂

I tried to create a global struct in C++ like your example, but the compiler can’t complete:

**Error C3646 ‘FName’: unknown override specifier**

I created the same header file that you and include to main header. Also I tried to close UnrealEd and delete all folders except “Content” and “Source” and tries to compile again, but the same problem :S

I upload a image to show the distribution of files in the solution. I think they are good.

Can you help me please? Thanks!

 ![135116-2017-04-22+05_21_13-terrorjam+-+microsoft+visual+studio.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/0/970eab61a043c53b5e5356a8e9871ac8eaf55450.png)

```
TerrorJam.h
#pragma once

#include "Engine.h"
#include "GlobalStructs.h"
```

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-make-global-functions-and-structs/319560)._
