Hi. Attempting to update from ue4 to ue5 and I got a weird linker problem:
1>Module.MyGame.2_of_3.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl UE::Net::WriteQuantizedVector(int,struct UE::Math::TVector<double> const &,class FArchive &)" (__imp_?WriteQuantizedVector@Net@UE@@YA_NHAEBU?$TVector@N@Math@2@AEAVFArchive@@@Z) referenced in function "bool __cdecl SerializePackedVector<10,24>(struct UE::Math::TVector<double> &,class FArchive &)" (??$SerializePackedVector@$09$0BI@@@YA_NAEAU?$TVector@N@Math@UE@@AEAVFArchive@@@Z)
1>Module.MyGame.2_of_3.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl UE::Net::ReadQuantizedVector(int,struct UE::Math::TVector<double> &,class FArchive &)" (__imp_?ReadQuantizedVector@Net@UE@@YA_NHAEAU?$TVector@N@Math@2@AEAVFArchive@@@Z) referenced in function "bool __cdecl SerializePackedVector<10,24>(struct UE::Math::TVector<double> &,class FArchive &)" (??$SerializePackedVector@$09$0BI@@@YA_NAEAU?$TVector@N@Math@UE@@AEAVFArchive@@@Z)
The minimal example to reproduce would be to call FVector_NetQuantize10::NetSerialize()
:
FArchive Ar;
UPackageMap* PackageMap = nullptr;
bool bSuccess;
FVector_NetQuantize10 Vec;
Vec.NetSerialize(Ar, PackageMap, bSuccess);
As far as i can see, some libs are missing from my installed build of 5.0.3. Build was assembled with the next line:
.\Engine\Binaries\DotNET\AutomationTool\AutomationTool.exe BuildGraph
-target="Make Installed Build Win64"
-script="Engine/Build/InstalledEngineBuild.xml"
-set:HostPlatformEditorOnly=true
-set:GameConfigurations=Development
-set:WithDDC=false
-set:EmbedSrcSrvInfo=false
-set:WithFullDebugInfo=false
-clean
Of course i can temporary workaround it with using regular FVector, but it’s only a workaround. Any ideas what could go wrong here?