Download

Trouble debugging a project

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 ==========

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?

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

http://www.cplusplus.com/forum/articles/10627/