Error When Rebuilding Project

So I updated my project to 4.11 from the preview version and it tells me I need to rebuild from source. So I went to the project in Visual Studio and hit the Rebuild button and the error code MSB3073 appears with the description:

The command ““C:\Program Files (x86)\Epic Games\4.11\Engine\Build\BatchFiles\Rebuild.bat” BlockFrenzyEditor Win64 Development “C:\Users\wes19_000\Documents\Unreal Projects\BlockFrenzy 4.11\BlockFrenzy.uproject” -waitmutex -2015” exited with code 255.

How do I fix this?

Hello polomos,

Typically, the error codes returned are passed through the script from another process. This means that you will typically have to look a little further up in the output log to find root cause. If you upload the origination of this error, I can try my best to help.

Thanks,
Jon N.

What do you mean by “origination of this error” exactly? Do you mean get the log?

Yes, I meant to grab the log output generated when you tried to build with Visual Studio. What I was explicitly trying to get at is that there’s probably an error a little ways up from that message you are seeing.

Ok I think I got it.

Performing 1 actions (4 in parallel)
[1/1] Link UE4Editor-BlockFrenzy.dll
Creating library C:\Users\wes19_000\Documents\Unreal Projects\BlockFrenzy 4.11\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-BlockFrenzy.lib and object C:\Users\wes19_000\Documents\Unreal Projects\BlockFrenzy 4.11\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-BlockFrenzy.exp
EquipingCharacter.cpp.obj : error LNK2019: unresolved external symbol "public: struct FHitResult __cdecl AEquipingCharacter::WeaponTrace(struct FVector const &,struct FVector const &)const " (?WeaponTrace@AEquipingCharacter@@QEBA?AUFHitResult@@AEBUFVector@@0@Z) referenced in function “public: void __cdecl AEquipingCharacter::Fire(void)” (?Fire@AEquipingCharacter@@QEAAXXZ)
C:\Users\wes19_000\Documents\Unreal Projects\BlockFrenzy 4.11\Binaries\Win64\UE4Editor-BlockFrenzy.dll : fatal error LNK1120: 1 unresolved externals
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR : UBT error : Failed to produce item: C:\Users\wes19_000\Documents\Unreal Projects\BlockFrenzy 4.11\Binaries\Win64\UE4Editor-BlockFrenzy.dll
Total build time: 4.75 seconds
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command ““C:\Program Files (x86)\Epic Games\4.11\Engine\Build\BatchFiles\Build.bat” BlockFrenzyEditor Win64 Development “C:\Users\wes19_000\Documents\Unreal Projects\BlockFrenzy 4.11\BlockFrenzy.uproject” -waitmutex -2015” exited with code -1.

The issue seems to be that the compiler (or linker rather) cannot find a definition for the following function:

public: struct FHitResult __cdecl AEquipingCharacter::WeaponTrace(struct FVector const &,struct FVector const &)const

Make sure that the implementation for this function wasn’t accidentally remove, and that the signature matches the function declaration from AEqupingCharacter.

Thanks,
- Jon N.

Yes, he means upload either the whole log or the part of the log that actually has the error.

Yup, WeaponTrace was the problem, now the project opens up fully. Thank you for the help.

Glad to hear it!

Thanks, - Jon N.