Update at bottom of post.
I’m building a super simple gamemode to begin working on a new project in 4.7, but when I attempt to compile, I receive the error in the title. I’ve tried poking around AnswerHub and the forums and haven’t seen anybody post something yet. That is the only error I’m getting.
HEADER
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/GameMode.h"
#include "RunBallGameMode.generated.h"
/**
*
*/
UCLASS()
class RUNBALLRUN_API ARunBallGameMode : public AGameMode
{
GENERATED_BODY()
//declare constructor
ARunBallGameMode();
//override start play function
void StartPlay() override;
};
.CPP
// Fill out your copyright notice in the Description page of Project Settings.
#include "RunBallRun.h"
#include "RunBallGameMode.h"
//Constructor implementation
ARunBallGameMode::ARunBallGameMode()
{}
//On startup notify the user of succseful GameMode use.
void ARunBallGameMode::StartPlay()
{
Super::StartPlay();
StartMatch();
if (GEngine)
{
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Yellow, TEXT("RunBallRun GameMode!"));
}
}
Any ideas would be great!
EDIT!
Well now I feel dumb. Out of frustration I attempted to revert to the "class(const FObjectInitializer& ObjectInitializer) constructor along with a Super call in the implementation and it compiled and opened fine.
So now I’m confused…If anybody understands and cares to explain then please do.