# Character class C++ error

**URL:** <https://forums.unrealengine.com/t/character-class-c-error/416035>\
**Category:** Character & Animation\
**Tags:** c-build, c-build-fail, unreal-engine, twin-stick, question, CPP\
**Created:** [January 31, 2018, 2:53pm UTC](https://forums.unrealengine.com/t/character-class-c-error/416035 "2018-01-31T14:53:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8c99c8a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8c99c8a1](https://forums.unrealengine.com/u/anonymous_user_8c99c8a1)\
**Post date:** [January 31, 2018, 2:53pm UTC](https://forums.unrealengine.com/t/character-class-c-error/416035/1 "2018-01-31T14:53:26Z")

</div>

Hi!

I’m quite new to Unreal Engine and C++. I’m following the Twin Stick Shooter tutorial (link:[text](https://www.youtube.com/watch?v=BY6hOyb16j8 "Twin Stick Tutorial")) and I’ve got problems with building the character class code. I think it’s because I’m using different version of UE4 but I have no idea how to fix this.

Visual studio is throwing following errors:

1\>------ Build started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------  
2\>------ Build started: Project: Harjoittelua, Configuration: Development\_Editor x64 ------  
2\>Compiling game modules for hot reload  
2\>Performing 3 actions (4 in parallel)  
2\>Shooter.cpp  
2\>D:\Program Files\Unreal Engine 4\UE\_4.18\Engine\Source\Runtime\Engine\Classes\GameFramework/RootMotionSource.h(12): error C2144: syntax error: ‘ACharacter’ should be preceded by ‘;’  
2\>D:\Program Files\Unreal Engine 4\UE\_4.18\Engine\Source\Runtime\Engine\Classes\GameFramework/RootMotionSource.h(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int  
2\>ERROR : UBT error : Failed to produce item: D:\Projects\UE4\Harjoittelua\Binaries\Win64\UE4Editor-Harjoittelua-2710.dll  
2\>Total build time: 1,89 seconds (Local executor: 0,00 seconds)  
2\>D:\Program Files\Visual Studio\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ““D:\Program Files\Unreal Engine 4\UE\_4.18\Engine\Build\BatchFiles\Build.bat” HarjoitteluaEditor Win64 Development “D:\Projects\UE4\Harjoittelua\Harjoittelua.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.  
2\>Done building project “Harjoittelua.vcxproj” – FAILED.  
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
