# FNetBitWriter compile error(5.6.0)

**URL:** <https://forums.unrealengine.com/t/fnetbitwriter-compile-error-5-6-0/2546594>\
**Category:** C++\
**Tags:** unreal-engine, compile-error, question, CPP\
**Created:** [June 8, 2025, 9:33am UTC](https://forums.unrealengine.com/t/fnetbitwriter-compile-error-5-6-0/2546594 "2025-06-08T09:33:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HollowZerk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HollowZerk](https://forums.unrealengine.com/u/HollowZerk)\
**Post date:** [June 8, 2025, 9:33am UTC](https://forums.unrealengine.com/t/fnetbitwriter-compile-error-5-6-0/2546594/1 "2025-06-08T09:33:34Z")

</div>

i’ve been trying some simple stuff in the 5.6 Templates, didnt really change much besides a component on the character  
now when im trying to compile i get errors which point to ‘NetTokenExportContext.h’  
an since its an engine file, i havn’t changed it or included it anywhere

------ Building 7 action(s) started ------  
[1/7] Compile [x64] HorrorCharacter.cpp  
11\>NetTokenExportContext.h(8,7): Error C2144 : syntax error: ‘FNetBitWriter’ should be preceded by ‘;’  
class FNetBitWriter;  
^  
11\>NetTokenExportContext.h(8,20): Error C4430 : missing type specifier - int assumed. Note: C++ does not support default-int  
class FNetBitWriter;  
^

same error for multiple template files for the HorrorUI and the project’s module as well

---

<div class="post-metadata">

**Author:** ![STRiFE.x](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/strife.x/32/969826_2.png) [@STRiFE.x](https://forums.unrealengine.com/u/STRiFE.x)\
**Post date:** [June 24, 2025, 5:25am UTC](https://forums.unrealengine.com/t/fnetbitwriter-compile-error-5-6-0/2546594/2 "2025-06-24T05:25:39Z")

</div>

Usually when you get seemingly nonsense errors is because you are not using the officially supported Visual Studio version, MSVC, or any other build component. You can always read the specific requirements in Platforms & SDK Updates section of engine release notes. [https://youtu.be/94FvzO1HVzY?t=167](https://youtu.be/94FvzO1HVzY?t=167)
