# Trouble debugging a project

**URL:** <https://forums.unrealengine.com/t/trouble-debugging-a-project/99869>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [September 13, 2017, 4:15pm UTC](https://forums.unrealengine.com/t/trouble-debugging-a-project/99869 "2017-09-13T16:15:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Draugole](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Draugole](https://forums.unrealengine.com/u/Draugole)\
**Post date:** [September 13, 2017, 4:15pm UTC](https://forums.unrealengine.com/t/trouble-debugging-a-project/99869/1 "2017-09-13T16:15:38Z")

</div>

So here’s the log

3\>c:\users\jesse\desktop\project cybershot\cybershot\cybershot v 0.02 4.17 - 4\source\cybershot\CybershotProjectile.h(29): error C2065: ‘ProjectileMovement’: undeclared identifier  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\Dummy.cpp(30): warning C4458: declaration of ‘InputComponent’ hides class member  
3\> C:\Users\Jesse\Desktop\Engins\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(338): note: see declaration of ‘AActor::InputComponent’  
3\> CybershotHUD.cpp  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotProjectile.cpp(8): error C2511: ‘ACybershotProjectile::ACybershotProjectile(void)’: overloaded member function not found in ‘ACybershotProjectile’  
3\> c:\users\jesse\desktop\project cybershot\cybershot\cybershot v 0.02 4.17 - 4\source\cybershot\CybershotProjectile.h(7): note: see declaration of ‘ACybershotProjectile’  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotProjectile.cpp(10): error C2352: ‘UObject::CreateDefaultSubobject’: illegal call of non-static member function  
3\> c:\users\jesse\desktop\engins\engine\source\runtime\coreuobject\public\UObject/Object.h(81): note: see declaration of ‘UObject::CreateDefaultSubobject’  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotProjectile.cpp(11): error C2227: left of ‘-\>InitSphereRadius’ must point to class/struct/union/generic type  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotProjectile.cpp(12): error C2227: left of ‘-\>BodyInstance’ must point to class/struct/union/generic type  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotProjectile.cpp(12): error C2228: left of ‘.SetCollisionProfileName’ must have class/struct/union  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotProjectile.cpp(13): error C2227: left of ‘-\>OnComponentHit’ must point to class/struct/union/generic type  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotProjectile.cpp(13): error C2228: left of ‘.\_\_Internal\_AddDynamic’ must have class/struct/union  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotProjectile.cpp(13): fatal error C1903: unable to recover from previous error(s); stopping compilation  
3\> INTERNAL COMPILER ERROR in ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe’  
3\> Please choose the Technical Support command on the Visual C++  
3\> Help menu, or open the Technical Support help file for more information  
3\> CybershotGameMode.cpp  
3\> CybershotCharacter.cpp  
3\>c:\users\jesse\desktop\project cybershot\cybershot\cybershot v 0.02 4.17 - 4\source\cybershot\CybershotProjectile.h(29): error C2065: ‘ProjectileMovement’: undeclared identifier  
3\> Cybershot.cpp  
3\> CSGameInstance.cpp  
3\> CharacterSelectionPawn.cpp  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CharacterSelectionPawn.cpp(30): warning C4458: declaration of ‘InputComponent’ hides class member  
3\> C:\Users\Jesse\Desktop\Engins\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(338): note: see declaration of ‘AActor::InputComponent’  
3\> Charactercrea.cpp  
3\> Module.Launch.cpp  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(39): error C2065: ‘FP\_Gun’: undeclared identifier  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(40): error C2065: ‘FP\_Gun’: undeclared identifier  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(40): error C2227: left of ‘-\>SetOnlyOwnerSee’ must point to class/struct/union/generic type  
3\> C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(40): note: type is ‘unknown-type’  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(41): error C2065: ‘FP\_Gun’: undeclared identifier  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(41): error C2227: left of ‘-\>bCastDynamicShadow’ must point to class/struct/union/generic type  
3\> C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(41): note: type is ‘unknown-type’  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(42): error C2065: ‘FP\_Gun’: undeclared identifier  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(42): error C2227: left of ‘-\>CastShadow’ must point to class/struct/union/generic type  
3\> C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(42): note: type is ‘unknown-type’  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(45): error C2065: ‘FP\_MuzzleLocation’: undeclared identifier  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(46): error C2065: ‘FP\_MuzzleLocation’: undeclared identifier  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(46): error C2227: left of ‘-\>SetupAttachment’ must point to class/struct/union/generic type  
3\> C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(46): note: type is ‘unknown-type’  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(46): error C2065: ‘FP\_Gun’: undeclared identifier  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(47): error C2065: ‘FP\_MuzzleLocation’: undeclared identifier  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(47): error C2227: left of ‘-\>SetRelativeLocation’ must point to class/struct/union/generic type  
3\> C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(47): note: type is ‘unknown-type’  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(61): error C2065: ‘FP\_Gun’: undeclared identifier  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(61): error C2227: left of ‘-\>AttachToComponent’ must point to class/struct/union/generic type  
3\> C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(61): note: type is ‘unknown-type’  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(67): warning C4458: declaration of ‘InputComponent’ hides class member  
3\> C:\Users\Jesse\Desktop\Engins\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(338): note: see declaration of ‘AActor::InputComponent’  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(100): error C2065: ‘FP\_MuzzleLocation’: undeclared identifier  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(100): error C2227: left of ‘-\>GetComponentLocation’ must point to class/struct/union/generic type  
3\> C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(100): note: type is ‘unknown-type’  
3\>C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Source\Cybershot\CybershotCharacter.cpp(219): warning C4458: declaration of ‘InputComponent’ hides class member  
3\> C:\Users\Jesse\Desktop\Engins\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(338): note: see declaration of 'AActor::InputComponent  
3\>ERROR : UBT error : Failed to produce item: C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Binaries\Win64\Cybershot-Win64-Debug.exe  
3\> Total build time: 8743,84 seconds (Local executor: 0,00 seconds)  
3\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command “C:\Users\Jesse\Desktop\Engins\Engine\Build\BatchFiles\Build.bat Cybershot Win64 Debug “C:\Users\Jesse\Desktop\Project Cybershot\CyberShot\Cybershot V 0.02 4.17 - 4\Cybershot.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.  
========== Build: 2 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========  
’

---

<div class="post-metadata">

**Author:** ![ExtraLifeMatt](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/extralifematt/32/918695_2.png) [@ExtraLifeMatt](https://forums.unrealengine.com/u/ExtraLifeMatt)\
**Post date:** [September 13, 2017, 4:47pm UTC](https://forums.unrealengine.com/t/trouble-debugging-a-project/99869/2 "2017-09-13T16:47:15Z")

</div>

Seems like you have many errors.

1. You have something called ProjectileMovement that isn’t properly included (likely need to add #include “GameFramework/ProjectileMovementComponent.h” )
2. You’re hiding an InputComponent (e.g. There already is a member named InputComponent in a base class and you likely have a local variable of the same name somewhere.)
3. Whatever FP\_Muzzle, etc are, you aren’t properly including them as well.

---

<div class="post-metadata">

**Author:** ![Draugole](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Draugole](https://forums.unrealengine.com/u/Draugole)\
**Post date:** [September 13, 2017, 5:12pm UTC](https://forums.unrealengine.com/t/trouble-debugging-a-project/99869/3 "2017-09-13T17:12:31Z")

</div>

> [@ExtraLifeMatt](#):
>
> Seems like you have many errors.
> 
> 1. You have something called ProjectileMovement that isn’t properly included (likely need to add #include “GameFramework/ProjectileMovementComponent.h” )
> 2. You’re hiding an InputComponent (e.g. There already is a member named InputComponent in a base class and you likely have a local variable of the same name somewhere.)
> 3. Whatever FP\_Muzzle, etc are, you aren’t properly including them as well.

Where would I need to include these files?

---

<div class="post-metadata">

**Author:** ![ExtraLifeMatt](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/extralifematt/32/918695_2.png) [@ExtraLifeMatt](https://forums.unrealengine.com/u/ExtraLifeMatt)\
**Post date:** [September 13, 2017, 6:09pm UTC](https://forums.unrealengine.com/t/trouble-debugging-a-project/99869/4 "2017-09-13T18:09:23Z")

</div>

> [@Draugole](#):
>
> Where would I need to include these files?

In whatever header file or source file they are being used.

[http://www.cplusplus.com/forum/articles/10627/](http://www.cplusplus.com/forum/articles/10627/)
