I appear to have errors in building my project from visual studio. I the .log file in C:\Users\USERNAME\Documents\Unreal Projects\PROJECTNAME\Intermediate\Build\Unused folder and it said that HEADERFILE.h should be the 1st header in the .CPP file. So i i fixed it. After I did I rebuilt the project solution and than clean solution than rebuild solution
1>------ Rebuild All started: Project: UE4, Configuration: BuiltWithUnrealBuildTool Win32 ------
2>------ Rebuild All started: Project: Lucian, Configuration: DebugGame_Editor x64 ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\Oleg\Documents\Unreal Projects\Lucian\Intermediate\ProjectFiles\UE4.vcxproj]
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\Oleg\Documents\Unreal Projects\Lucian\Intermediate\ProjectFiles\Lucian.vcxproj]
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\Oleg\Documents\Unreal Projects\Lucian\Intermediate\ProjectFiles\UE4.vcxproj]
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\Oleg\Documents\Unreal Projects\Lucian\Intermediate\ProjectFiles\Lucian.vcxproj]
2>Cleaning LucianEditor Binaries...
2>Performing full C++ include scan (building a new target)
2>Creating makefile for LucianEditor (no existing makefile)
2>Performing full C++ include scan (no include cache file)
2>Parsing headers for LucianEditor
2> Running UnrealHeaderTool "C:\Users\Oleg\Documents\Unreal Projects\Lucian\Lucian.uproject" "C:\Users\Oleg\Documents\Unreal Projects\Lucian\Intermediate\Build\Win64\LucianEditor\DebugGame\LucianEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
2>Reflection code generated for LucianEditor in 26.9101988 seconds
2>Distributing 13 actions to XGE
2>--------------------Build System Warning---------------------------------------
2>License is invalid:
2> License information is invalid. Please try reloading your license file using the Coordinator Monitor application on the Coordinator machine, or reinstall IncrediBuild.
2> This build will run in standalone mode.
2>
2>-------------------------------------------------------------------------------
2>--------------------Project: Default-------------------------------------------
2>SharedPCH.Engine.NonOptimized.cpp (1:07.76 at +0:00)
2>Des.cpp (0:00.75 at +1:07)
2>Lucian.cpp (0:00.81 at +1:08)
2>LucianCharacter.cpp (0:02.45 at +1:09)
2>LucianGameMode.cpp (0:00.82 at +1:11)
2>C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(19): error C2144: syntax error: 'void' should be preceded by ';'
2>C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(19): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(19): error C3158: 'BeginPlay': 'override' can only be applied to a virtual member function
2>C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(19): error C2575: 'BeginPlay': only member functions and bases can be virtual
2>C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(21): error C2509: 'BeginPlay': member function not declared in 'ALucianGameMode'
2>c:\users\oleg\documents\unreal projects\lucian\source\lucian\LucianGameMode.h(10): note: see declaration of 'ALucianGameMode'
2>
2>Error executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe (tool returned code: 2)
2>---------------------- Done ----------------------
2>
2> Rebuild All: 0 succeeded, 1 failed, 0 skipped
2>
2>1 build system warning(s):
2> - License is invalid
2>
2>
2>
2>ERROR : UBT error : Failed to produce item: C:\Users\Oleg\Documents\Unreal Projects\Lucian\Binaries\Win64\UE4Editor-Lucian-Win64-DebugGame.dll
2>Total build time: 193.84 seconds (XGE executor: 0.00 seconds)
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Rebuild.bat" LucianEditor Win64 DebugGame "C:\Users\Oleg\Documents\Unreal Projects\Lucian\Lucian.uproject" -waitmutex" exited with code -1.
2>Done building project "Lucian.vcxproj" -- FAILED.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
As you noticed it said project failed to built that is because of some of the keywords and functions in Unreal Script that the CPP framework is unknown to. I currently had a invaild license of Incredibuild now am uninstalling it. Because that might be interacting with the building of the code negativitly.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\Oleg\Documents\Unreal Projects\Lucian\Intermediate\ProjectFiles\UE4.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\Oleg\Documents\Unreal Projects\Lucian\Intermediate\ProjectFiles\Lucian.vcxproj]
Cleaning LucianEditor Binaries...
Performing full C++ include scan (building a new target)
Creating makefile for LucianEditor (no existing makefile)
Performing full C++ include scan (no include cache file)
Parsing headers for LucianEditor
Running UnrealHeaderTool "C:\Users\Oleg\Documents\Unreal Projects\Lucian\Lucian.uproject" "C:\Users\Oleg\Documents\Unreal Projects\Lucian\Intermediate\Build\Win64\LucianEditor\DebugGame\LucianEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for LucianEditor in 26.9101988 seconds
Distributing 13 actions to XGE
--------------------Build System Warning---------------------------------------
License is invalid:
License information is invalid. Please try reloading your license file using the Coordinator Monitor application on the Coordinator machine, or reinstall IncrediBuild.
This build will run in standalone mode.
-------------------------------------------------------------------------------
--------------------Project: Default-------------------------------------------
SharedPCH.Engine.NonOptimized.cpp (1:07.76 at +0:00)
Des.cpp (0:00.75 at +1:07)
Lucian.cpp (0:00.81 at +1:08)
LucianCharacter.cpp (0:02.45 at +1:09)
LucianGameMode.cpp (0:00.82 at +1:11)
C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(19): error C2144: syntax error: 'void' should be preceded by ';'
C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(19): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(19): error C3158: 'BeginPlay': 'override' can only be applied to a virtual member function
C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(19): error C2575: 'BeginPlay': only member functions and bases can be virtual
C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(21): error C2509: 'BeginPlay': member function not declared in 'ALucianGameMode'
c:\users\oleg\documents\unreal projects\lucian\source\lucian\LucianGameMode.h(10): note: see declaration of 'ALucianGameMode'
Error executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe (tool returned code: 2)
---------------------- Done ----------------------
Rebuild All: 0 succeeded, 1 failed, 0 skipped
1 build system warning(s):
- License is invalid
ERROR : UBT error : Failed to produce item: C:\Users\Oleg\Documents\Unreal Projects\Lucian\Binaries\Win64\UE4Editor-Lucian-Win64-DebugGame.dll
Total build time: 193.84 seconds (XGE executor: 0.00 seconds)
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Rebuild.bat" LucianEditor Win64 DebugGame "C:\Users\Oleg\Documents\Unreal Projects\Lucian\Lucian.uproject" -waitmutex" exited with code -1.
So now uninstalled Incredibuild. Opening the .uproject file and rebuilding the .DLL
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\Oleg\Documents\Unreal Projects\Lucian\Intermediate\ProjectFiles\UE4.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.props(31,3): warning MSB4011: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Makefile.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props (31,3)". This is most likely a build authoring error. This subsequent import will be ignored. [C:\Users\Oleg\Documents\Unreal Projects\Lucian\Intermediate\ProjectFiles\Lucian.vcxproj]
Cleaning LucianEditor Binaries...
Performing full C++ include scan (building a new target)
Creating makefile for LucianEditor (no existing makefile)
Performing full C++ include scan (no include cache file)
Parsing headers for LucianEditor
Running UnrealHeaderTool "C:\Users\Oleg\Documents\Unreal Projects\Lucian\Lucian.uproject" "C:\Users\Oleg\Documents\Unreal Projects\Lucian\Intermediate\Build\Win64\LucianEditor\DebugGame\LucianEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
Reflection code generated for LucianEditor in 26.9101988 seconds
Distributing 13 actions to XGE
--------------------Build System Warning---------------------------------------
License is invalid:
License information is invalid. Please try reloading your license file using the Coordinator Monitor application on the Coordinator machine, or reinstall IncrediBuild.
This build will run in standalone mode.
-------------------------------------------------------------------------------
--------------------Project: Default-------------------------------------------
SharedPCH.Engine.NonOptimized.cpp (1:07.76 at +0:00)
Des.cpp (0:00.75 at +1:07)
Lucian.cpp (0:00.81 at +1:08)
LucianCharacter.cpp (0:02.45 at +1:09)
LucianGameMode.cpp (0:00.82 at +1:11)
C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(19): error C2144: syntax error: 'void' should be preceded by ';'
C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(19): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(19): error C3158: 'BeginPlay': 'override' can only be applied to a virtual member function
C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(19): error C2575: 'BeginPlay': only member functions and bases can be virtual
C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp(21): error C2509: 'BeginPlay': member function not declared in 'ALucianGameMode'
c:\users\oleg\documents\unreal projects\lucian\source\lucian\LucianGameMode.h(10): note: see declaration of 'ALucianGameMode'
Error executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe (tool returned code: 2)
---------------------- Done ----------------------
Rebuild All: 0 succeeded, 1 failed, 0 skipped
1 build system warning(s):
- License is invalid
ERROR : UBT error : Failed to produce item: C:\Users\Oleg\Documents\Unreal Projects\Lucian\Binaries\Win64\UE4Editor-Lucian-Win64-DebugGame.dll
Total build time: 193.84 seconds (XGE executor: 0.00 seconds)
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Rebuild.bat" LucianEditor Win64 DebugGame "C:\Users\Oleg\Documents\Unreal Projects\Lucian\Lucian.uproject" -waitmutex" exited with code -1.
So now opening VS and rebuilding and cleaning than rebuilding
Severity Code Description Project File Line Suppression State
Error C3158 'BeginPlay': 'override' can only be applied to a virtual member function Lucian C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp 19
Error C2144 syntax error: 'void' should be preceded by ';' Lucian C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp 19
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Lucian C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp 19
Error C2575 'BeginPlay': only member functions and bases can be virtual Lucian C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp 19
Error C2509 'BeginPlay': member function not declared in 'ALucianGameMode' Lucian C:\Users\Oleg\Documents\Unreal Projects\Lucian\Source\Lucian\LucianGameMode.cpp 21
Error Failed to produce item: C:\Users\Oleg\Documents\Unreal Projects\Lucian\Binaries\Win64\UE4Editor-Lucian-Win64-DebugGame.dll Lucian C:\Users\Oleg\Documents\Unreal Projects\Lucian\Intermediate\ProjectFiles\ERROR 1
Error MSB3073 The command ""C:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Rebuild.bat" LucianEditor Win64 DebugGame "C:\Users\Oleg\Documents\Unreal Projects\Lucian\Lucian.uproject" -waitmutex" exited with code -1. Lucian C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 46
These are the errors upon rebuilding. I notice (Error C3158) the phraser
//Inside PROJECTNAMEGameMode.cpp
virtual void BeginPlay() override;
virtual void ALucianGameMode::BeginPlay() {
Super::BeginPlay();
GEngine->AddOnScreenDebugMessage(
-1, -1,
FColor::Red,
TEXT("Actor Des Spawning"));
PTransform SpawnLocation;
GetWorld()->SpawnActor<Des>(
ADes::StaticClass(),
&SpawnLocation
);
}
Now i add that… And Rebuild still errors…
here is the edited code after errors
#include "LucianGameMode.h"
#include "LucianCharacter.h"
#include "Des.h"
#include "UObject/ConstructorHelpers.h"
ALucianGameMode::ALucianGameMode()
{
// set default pawn class to our Blueprinted character
static ConstructorHelpers::FClassFinder<APawn> PlayerPawnBPClass(TEXT("/Game/ThirdPersonCPP/Blueprints/ThirdPersonCharacter"));
if (PlayerPawnBPClass.Class != NULL)
{
DefaultPawnClass = PlayerPawnBPClass.Class;
}
}
virtual void BeginPlay()[ override;
virtual void ALucianGameMode::BeginPlay() {
Super::BeginPlay();
GEngine->AddOnScreenDebugMessage(
-1, -1,
FColor::Red,
TEXT("Actor Des Spawning"));
PTransform SpawnLocation;
GetWorld()->SpawnActor<Des>(
ADes::StaticClass(),
&SpawnLocation
);
}]
Sorry im still learning C++. Im more experinced with JAVA and C. So i decided to delete the Des.h and Des.cpp files and refactor my code. Now attempting to rebuild. I just want the Unreal to load my project. A class i just started can be re entered from a tutorial i am reading.


Success kinda…
Conclusion. The new c++ class had error failing to build the solution. Crashing the building of the .DLL
The DLL was missing because the code was edited and there were many errors. Upon re-executing unreal the DLL was missing.