# UpdateResourceW compile error after adding EOS SDK

**URL:** <https://forums.unrealengine.com/t/updateresourcew-compile-error-after-adding-eos-sdk/468825>\
**Category:** C++\
**Tags:** unreal-engine, compile-error, question, CPP\
**Created:** [July 28, 2020, 10:16pm UTC](https://forums.unrealengine.com/t/updateresourcew-compile-error-after-adding-eos-sdk/468825 "2020-07-28T22:16:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KhalimWu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KhalimWu](https://forums.unrealengine.com/u/KhalimWu)\
**Post date:** [July 28, 2020, 10:16pm UTC](https://forums.unrealengine.com/t/updateresourcew-compile-error-after-adding-eos-sdk/468825/1 "2020-07-28T22:16:09Z")

</div>

I was working fine until yesterday on a proyect that already has lots of classes. Today i decided to try to implement EOS, linked the .lib and suddenly started getting the following errors:

Error C3668 ‘UTextureCube::UpdateResourceW’: method with override specifier ‘override’ did not override any base class methods UnrealDemo E:\UE\_4.25\Engine\Source\Runtime\Engine\Classes\Engine\TextureCube.h 78   
Error C3668 ‘UCanvasRenderTarget2D::UpdateResourceW’: method with override specifier ‘override’ did not override any base class methods UnrealDemo E:\UE\_4.25\Engine\Source\Runtime\Engine\Classes\Engine\CanvasRenderTarget2D.h 43

This is anytime i create a new class. If i don’t create a .cpp the proyect compiles without any problem. But as soon as i create a .cpp of the new class i start getting that those errors.

I got my proyect under subversion control, so i reverted everything (and deleted all generated/Intermediate files) to yesterday’s version (where i created new classes) and even then if i create a new class i get that error.

My guess is that somehow the project got corrupted with the .lib linking from EOS sdk. Any thoughts about what i could do? I tried to change versions too to 4.25 and the errors stays.

---

<div class="post-metadata">

**Author:** ![KhalimWu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KhalimWu](https://forums.unrealengine.com/u/KhalimWu)\
**Post date:** [July 29, 2020, 1:49am UTC](https://forums.unrealengine.com/t/updateresourcew-compile-error-after-adding-eos-sdk/468825/2 "2020-07-29T01:49:03Z")

</div>

After spending quite a few hours i found out that it doesn’t seems to have anything with the SDK. I have been trying out reverting and it works fine on a commit before last night where i did a few changes and created a c++ AActor and a UPhysicalMaterial.

The weird thing is that any class i create after adding those 2 classes starts giving me that error. I delete the newly created class and it compiles again. I even tried reverting back to the working version (without the AActor and a UPhysicalMaterial), created 1 empty aactor and it compiled, created a pawn and it compiled…created another pawn and again…the same error… i HIGHLY doubt UE has any type of limitation for c++ classes, that would be really absurd.

---

<div class="post-metadata">

**Author:** ![KhalimWu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KhalimWu](https://forums.unrealengine.com/u/KhalimWu)\
**Post date:** [July 29, 2020, 3:55am UTC](https://forums.unrealengine.com/t/updateresourcew-compile-error-after-adding-eos-sdk/468825/3 "2020-07-29T03:55:13Z")

</div>

After doing massive cleanup on the code, checked class by class to find anything that could be causing this. In the end i just decided to try to use the #undef UpdateResource method (as suggested somewhere on the forums/hub). Finally i found out that doing so on the PROJECT.cpp allows me to keep compiling.

This looks awfully like an ugly patch and i would still like some official word from anyone on UE, as the error only happened if i reached a certain number of classes. Without any kind of clue on what’s wrong this is some horrible engine bug.

 ![308397-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/7/7a7919a3e7df4c950c19840b6bd6f34891dd6267.png)

---

<div class="post-metadata">

**Author:** ![RagingRey06](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RagingRey06](https://forums.unrealengine.com/u/RagingRey06)\
**Post date:** [February 15, 2024, 4:39pm UTC](https://forums.unrealengine.com/t/updateresourcew-compile-error-after-adding-eos-sdk/468825/4 "2024-02-15T16:39:48Z")

</div>

I am currently having this issue as well and your solution didn’t seem to work. My compile complains about #pragma optimize()

 ![Screenshot 2024-02-15 173015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/9/b59fc2a879f6a7e2435ab65434b2689a67047b58.png)  
Do you happen to know what could be wrong.
