Project Won't Compile in 4.13 !!

Hey there,
I recently upgraded to the latest engine version and now VS is giving me a list of errors i’ve never seen before…
Wondering if anyone has had a similar problem and/or can give some insight?
Thanks.

VS output
{
1>------ Build started: Project: DeadMansLand, Configuration: Development_Editor x64 ------
1> Performing 1 actions (6 in parallel)
1> [1/1] Link UE4Editor-DeadMansLand.dll
1> Creating library C:\Users\Big Craig\Documents\Unreal Projects\DeadMansLand 4.13\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-DeadMansLand.lib and object C:\Users\Big Craig\Documents\Unreal Projects\DeadMansLand 4.13\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-DeadMansLand.exp
1>Module.DeadMansLand.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl IGameplayTaskOwnerInterface::OnGameplayTaskActivated(class UGameplayTask &)” (?OnGameplayTaskActivated@IGameplayTaskOwnerInterface@@UEAAXAEAVUGameplayTask@@@Z)
1>DeadMansLand.generated.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl IGameplayTaskOwnerInterface::OnGameplayTaskActivated(class UGameplayTask &)” (?OnGameplayTaskActivated@IGameplayTaskOwnerInterface@@UEAAXAEAVUGameplayTask@@@Z)
1>Module.DeadMansLand.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl IGameplayTaskOwnerInterface::OnGameplayTaskDeactivated(class UGameplayTask &)” (?OnGameplayTaskDeactivated@IGameplayTaskOwnerInterface@@UEAAXAEAVUGameplayTask@@@Z)
1>DeadMansLand.generated.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl IGameplayTaskOwnerInterface::OnGameplayTaskDeactivated(class UGameplayTask &)” (?OnGameplayTaskDeactivated@IGameplayTaskOwnerInterface@@UEAAXAEAVUGameplayTask@@@Z)
1>C:\Users\Big Craig\Documents\Unreal Projects\DeadMansLand 4.13\Binaries\Win64\UE4Editor-DeadMansLand.dll : fatal error LNK1120: 2 unresolved externals
1>ERROR : UBT error : Failed to produce item: C:\Users\Big Craig\Documents\Unreal Projects\DeadMansLand 4.13\Binaries\Win64\UE4Editor-DeadMansLand.dll
1> Total build time: 4.11 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ““C:\Program Files (x86)\Epic Games\4.13\Engine\Build\BatchFiles\Build.bat” DeadMansLandEditor Win64 Development “C:\Users\Big Craig\Documents\Unreal Projects\DeadMansLand 4.13\DeadMansLand.uproject” -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
}

Try deleting the contents of the intermediate folder, and binary folder in the project.

Deleted all the intermediate and binary folders and still getting the same problem… :frowning:

Just go ahead and delete everything in there, and the binary folder. It helps sometimes. If you want to be safe just move the contents somewhere else.

no luck. Is there any additional modules i may have to include for 4.13 ?

Did you try rerunning the project generator before attempting to compile? I’ve had that build error before, can’t recall how I exactly fixed it.

as in generating the project files again from the .uproject file? yeah ive done that, reloaded the code, and it sill gives me this **** issue!

Looks like you’re missing a dependency - namely “GameplayTasks”.

Try adding it to your PublicDependencyModuleNames in the games build config file - which I assume is DeadMansLand.Build.cs

See Survival Game series in UE4.12.

3 Likes

that fixed the issue !!
thanks, i appreciate the help from everyone !!