Download

Problem building with Actor in plugin

Hello all! I am working on a plugin for the editor. I added a class derived from AActor to my plugin and now it won’t build. Here is my Actor’s header:



// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "WaterComponent.h"
#include "WaterSystem.generated.h"

/**/
UCLASS(NotBlueprintable)
class AWaterSystem : public AActor
{
	GENERATED_BODY()
};


and the implementation file:



// Fill out your copyright notice in the Description page of Project Settings.

#include "KoldExtensionsPrivatePCH.h"
#include "WaterSystem.h"

AWaterSystem::AWaterSystem(const FObjectInitializer& ObjectInitializer)
	: Super(ObjectInitializer)
{

}


Also, here is my build file:



namespace UnrealBuildTool.Rules
{
    public class KoldExtensions : ModuleRules
    {
        public KoldExtensions(TargetInfo Target)
        {
            PrivateIncludePaths.AddRange(new string] { "KoldExtensions/Private" });
            PublicIncludePaths.AddRange(new string] { "KoldExtensions/Public" });

            PublicDependencyModuleNames.AddRange(new string] { "Core", "CoreUObject", "Engine", "RenderCore", "ShaderCore", "RHI", "InputCore", "UnrealEd", "LevelEditor", "EditorStyle", "Slate", "SlateCore" });
        }
    }
}


Here is the output of the Unreal Build Tool:



1>------ Build started: Project: KoldExtensionsTest, Configuration: Development_Editor x64 ------
1>  Parsing headers for KoldExtensionsTestEditor
1>  Reflection code generated for KoldExtensionsTestEditor
1>  Performing 6 actions (4 in parallel)
1>  KoldExtensions.generated.cpp
1>  WaterComponent.cpp
1>  River.cpp
1>  Ocean.cpp
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(10): error C2146: syntax error : missing ';' before identifier 'ScriptPointerType'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(422): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(427): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(432): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C2144: syntax error : 'void' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C2144: syntax error : 'void' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458): error C2079: 'FReferencerInformation' uses undefined struct 'DLLIMPORT'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(460): error C2144: syntax error : 'UObject' should be preceded by '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(460): error C2144: syntax error : 'UObject' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(463): error C2146: syntax error : missing ';' before identifier 'TotalReferences'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(463): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(466): error C2143: syntax error : missing ';' before '<'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(466): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(468): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(468): error C2365: 'FReferencerInformation' : redefinition; previous definition was 'data variable'
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458) : see declaration of 'FReferencerInformation'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C2061: syntax error : identifier 'int32'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C2365: 'FReferencerInformation' : redefinition; previous definition was 'data variable'
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458) : see declaration of 'FReferencerInformation'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(470): error C2059: syntax error : '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(470): error C2143: syntax error : missing ';' before '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(473): error C2079: 'FReferencerInformationList' uses undefined struct 'DLLIMPORT'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): error C2065: 'InternalReferences' : undeclared identifier
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): warning C4804: '>' : unsafe use of type 'bool' in operation
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): error C2143: syntax error : missing '}' before ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): fatal error C1903: unable to recover from previous error(s); stopping compilation
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(10): error C2146: syntax error : missing ';' before identifier 'ScriptPointerType'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(422): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(427): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(432): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C2144: syntax error : 'void' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C2144: syntax error : 'void' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458): error C2079: 'FReferencerInformation' uses undefined struct 'DLLIMPORT'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(10): error C2146: syntax error : missing ';' before identifier 'ScriptPointerType'E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(460) : error C2144: syntax error : 'UObject' should be preceded by '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>  
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(460): error C2144: syntax error : 'UObject' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(463): error C2146: syntax error : missing ';' before identifier 'TotalReferences'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(463): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(466): error C2143: syntax error : missing ';' before '<'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(466): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(468): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(468): error C2365: 'FReferencerInformation' : redefinition; previous definition was 'data variable'
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458) : see declaration of 'FReferencerInformation'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C2061: syntax error : identifier 'int32'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C2365: 'FReferencerInformation' : redefinition; previous definition was 'data variable'
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458) : see declaration of 'FReferencerInformation'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(470): error C2059: syntax error : '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(470): error C2143: syntax error : missing ';' before '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(473): error C2079: 'FReferencerInformationList' uses undefined struct 'DLLIMPORT'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): error C2065: 'InternalReferences' : undeclared identifier
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): warning C4804: '>' : unsafe use of type 'bool' in operation
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): error C2143: syntax error : missing '}' before ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): fatal error C1903: unable to recover from previous error(s); stopping compilation
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(422): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(427): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(432): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C2144: syntax error : 'void' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C2144: syntax error : 'void' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458): error C2079: 'FReferencerInformation' uses undefined struct 'DLLIMPORT'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(460): error C2144: syntax error : 'UObject' should be preceded by '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(460): error C2144: syntax error : 'UObject' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(463): error C2146: syntax error : missing ';' before identifier 'TotalReferences'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(463): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(466): error C2143: syntax error : missing ';' before '<'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(466): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(468): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(468): error C2365: 'FReferencerInformation' : redefinition; previous definition was 'data variable'
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458) : see declaration of 'FReferencerInformation'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C2061: syntax error : identifier 'int32'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C2365: 'FReferencerInformation' : redefinition; previous definition was 'data variable'
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458) : see declaration of 'FReferencerInformation'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(470): error C2059: syntax error : '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(470): error C2143: syntax error : missing ';' before '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(473): error C2079: 'FReferencerInformationList' uses undefined struct 'DLLIMPORT'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): error C2065: 'InternalReferences' : undeclared identifier
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): warning C4804: '>' : unsafe use of type 'bool' in operation
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): error C2143: syntax error : missing '}' before ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): fatal error C1903: unable to recover from previous error(s); stopping compilation
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(10): error C2146: syntax error : missing ';' before identifier 'ScriptPointerType'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(422): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(427): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(432): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C2144: syntax error : 'void' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C2144: syntax error : 'void' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458): error C2079: 'FReferencerInformation' uses undefined struct 'DLLIMPORT'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(460): error C2144: syntax error : 'UObject' should be preceded by '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(460): error C2144: syntax error : 'UObject' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(463): error C2146: syntax error : missing ';' before identifier 'TotalReferences'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(463): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(466): error C2143: syntax error : missing ';' before '<'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(466): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(468): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(468): error C2365: 'FReferencerInformation' : redefinition; previous definition was 'data variable'
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458) : see declaration of 'FReferencerInformation'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C2061: syntax error : identifier 'int32'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C2365: 'FReferencerInformation' : redefinition; previous definition was 'data variable'
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458) : see declaration of 'FReferencerInformation'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(470): error C2059: syntax error : '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(470): error C2143: syntax error : missing ';' before '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(473): error C2079: 'FReferencerInformationList' uses undefined struct 'DLLIMPORT'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): error C2065: 'InternalReferences' : undeclared identifier
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): warning C4804: '>' : unsafe use of type 'bool' in operation
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): error C2143: syntax error : missing '}' before ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): fatal error C1903: unable to recover from previous error(s); stopping compilation
1>  WaterSystem.cpp
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(10): error C2146: syntax error : missing ';' before identifier 'ScriptPointerType'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(422): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(425): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(427): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C2146: syntax error : missing ';' before identifier 'EObjectFlags'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(430): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(432): error C3861: 'uint32': identifier not found
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C2144: syntax error : 'void' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(435): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C2144: syntax error : 'void' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(439): error C2086: 'int FORCEINLINE' : redefinition
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(420) : see declaration of 'FORCEINLINE'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458): error C2079: 'FReferencerInformation' uses undefined struct 'DLLIMPORT'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(460): error C2144: syntax error : 'UObject' should be preceded by '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(460): error C2144: syntax error : 'UObject' should be preceded by ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(463): error C2146: syntax error : missing ';' before identifier 'TotalReferences'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(463): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(466): error C2143: syntax error : missing ';' before '<'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(466): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(468): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(468): error C2365: 'FReferencerInformation' : redefinition; previous definition was 'data variable'
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458) : see declaration of 'FReferencerInformation'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C2061: syntax error : identifier 'int32'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(469): error C2365: 'FReferencerInformation' : redefinition; previous definition was 'data variable'
1>          E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(458) : see declaration of 'FReferencerInformation'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(470): error C2059: syntax error : '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(470): error C2143: syntax error : missing ';' before '}'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(473): error C2079: 'FReferencerInformationList' uses undefined struct 'DLLIMPORT'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): error C2065: 'InternalReferences' : undeclared identifier
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): warning C4804: '>' : unsafe use of type 'bool' in operation
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): error C2143: syntax error : missing '}' before ';'
1>E:\Applications\Epic Games\4.7\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectBase.h(474): fatal error C1903: unable to recover from previous error(s); stopping compilation
1>  -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: E:\Documents\Unreal Projects\KoldExtensionsTest\Plugins\KoldExtensions\Binaries\Win64\UE4Editor-KoldExtensions.pdb
1>  Cumulative action seconds (8 processors): 0.00 building projects, 1.40 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.00 linking, 0.00 other
1>  UBT execution time: 11.69 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ""E:\Applications\Epic Games\4.7\Engine\Build\BatchFiles\Build.bat" KoldExtensionsTestEditor Win64 Development "E:\Documents\Unreal Projects\KoldExtensionsTest\KoldExtensionsTest.uproject" -rocket" exited with code -1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


What’s going on? This is pretty weird considering that my last plugin worked fine with actors. Any help? Thanks! :slight_smile:

Fixed it! I needed to include “Engine.h” and “CoreUObject.cpp” in my precompiled header file.