Been following programming tutorials and started getting this message when I change the code. I created a FPSGameMode class, added the BeginPlay overwritten function and tried to compile got the following in output:
1>------ Build started: Project: FPSProject, Configuration: Development_Editor x64 ------
1> Parsing headers for FPSProjectEditor
1> Code generation finished for FPSProjectEditor and took 2.739
1> FPSGameMode.cpp
1> link.exe UE4Editor-FPSProject.dll
1> Creating library C:\Users\Leon\Documents\Unreal Projects\FPSProject\Intermediate\Build\Win64\FPSProjectEditor\Development\UE4Editor-FPSProject.lib and object C:\Users\Leon\Documents\Unreal Projects\FPSProject\Intermediate\Build\Win64\FPSProjectEditor\Development\UE4Editor-FPSProject.exp
1>FPSGameMode.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl AFPSGameMode::BeginPlay(void)" (?BeginPlay@AFPSGameMode@@UEAAXXZ)
1>C:\Users\Leon\Documents\Unreal Projects\FPSProject\Binaries\Win64\UE4Editor-FPSProject.dll : fatal error LNK1120: 1 unresolved externals
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: C:\Users\Leon\Documents\Unreal Projects\FPSProject\Binaries\Win64\UE4Editor-FPSProject.dll
1> Cumulative action seconds (4 processors): 0.00 building projects, 0.20 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.10 linking, 0.00 other
1> UBT execution time: 6.18 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "F:\Unreal4\4.0\Engine\Build\BatchFiles\Build.bat FPSProjectEditor Win64 Development "C:\Users\Leon\Documents\Unreal Projects\FPSProject\FPSProject.uproject" -rocket" exited with code -1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Now when I try to open the project in editor it doesn’t work.