# Compiler Error When Upgraded to 4.6

**URL:** <https://forums.unrealengine.com/t/compiler-error-when-upgraded-to-4-6/301457>\
**Category:** C++\
**Tags:** error-building, upgrade, unreal-engine, UE4, CPP, question\
**Created:** [December 13, 2014, 7:40am UTC](https://forums.unrealengine.com/t/compiler-error-when-upgraded-to-4-6/301457 "2014-12-13T07:40:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janyx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Janyx](https://forums.unrealengine.com/u/Janyx)\
**Post date:** [December 13, 2014, 7:40am UTC](https://forums.unrealengine.com/t/compiler-error-when-upgraded-to-4-6/301457/1 "2014-12-13T07:40:11Z")

</div>

I recently upgraded to version 4.6 from 4.5 now when I try to build my code I get an error thrown on this line (which happens to appear 10ish time) in my MyGame.generated.cpp

```
static FCompiledInDeferStruct Z_CompiledInDeferStruct_UScriptStruct_FInstantHitInfo(FInstantHitInfo::StaticStruct);

```

Has anyone experienced the same issue and know hoe to resolve it? The error I gives me is:

> Error 22 error C2664: ‘FCompiledInDeferStruct::FCompiledInDeferStruct(const FCompiledInDeferStruct &)’ : cannot convert argument 1 from ‘UScriptStruct \*(\_\_cdecl \*)(void)’ to ‘const FCompiledInDeferStruct &’

---

<div class="post-metadata">

**Author:** ![Janyx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Janyx](https://forums.unrealengine.com/u/Janyx)\
**Post date:** [December 13, 2014, 4:21pm UTC](https://forums.unrealengine.com/t/compiler-error-when-upgraded-to-4-6/301457/2 "2014-12-13T16:21:36Z")

</div>

So I tried again this morning and it worked no problem. I did notice that the "MyGame.generated.cpp’ is actually gone, so maybe thats the reason? Strange thing but everything is working fine now.
