Im working in a Videogames with C++. The game need databases and I add .csv file to the proyect. But this is my error:
1>------ Build started: Project: Batalla, Configuration: DebugGame_Editor x64 ------
1> Performing 1 actions (2 in parallel)
1> [1/1] Link UE4Editor-Batalla-Win64-DebugGame.dll
1> Creating library D:\Proyectos UE\Batalla\Batalla\Intermediate\Build\Win64\BatallaEditor\DebugGame\UE4Editor-Batalla-Win64-DebugGame.lib and object D:\Proyectos UE\Batalla\Batalla\Intermediate\Build\Win64\BatallaEditor\DebugGame\UE4Editor-Batalla-Win64-DebugGame.exp
1>BaseDeDatos.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UDataTable::FinishDestroy(void)" (?FinishDestroy@UDataTable@@UEAAXXZ)
1>Batalla.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UDataTable::FinishDestroy(void)" (?FinishDestroy@UDataTable@@UEAAXXZ)
1>BaseDeDatos.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UDataTable::Serialize(class FArchive &)" (?Serialize@UDataTable@@UEAAXAEAVFArchive@@@Z)
1>Batalla.generated.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl UDataTable::Serialize(class FArchive &)" (?Serialize@UDataTable@@UEAAXAEAVFArchive@@@Z)
1>Batalla.generated.cpp.obj : error LNK2019: unresolved external symbol "public: static void __cdecl UDataTable::AddReferencedObjects(class UObject *,class FReferenceCollector &)" (?AddReferencedObjects@UDataTable@@SAXPEAVUObject@@AEAVFReferenceCollector@@@Z) referenced in function "void __cdecl GetPrivateStaticClassBody<class UBaseDeDatos>(wchar_t const *,wchar_t const *,class UClass * &,void (__cdecl*)(void))" (??$GetPrivateStaticClassBody@VUBaseDeDatos@@@@YAXPEB_W0AEAPEAVUClass@@P6AXXZ@Z)
1>D:\Proyectos UE\Batalla\Batalla\Binaries\Win64\UE4Editor-Batalla-Win64-DebugGame.dll : fatal error LNK1120: 3 unresolved externals
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: D:\Proyectos UE\Batalla\Batalla\Binaries\Win64\UE4Editor-Batalla-Win64-DebugGame.dll
1> Cumulative action seconds (4 processors): 0,00 building projects, 0,00 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,41 linking, 0,00 other
1> UBT execution time: 5,35 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ""D:\Program Files\Epic Games\4.7\Engine\Build\BatchFiles\Build.bat" BatallaEditor Win64 DebugGame "D:\Proyectos UE\Batalla\Batalla\Batalla.uproject" -rocket" exited with code -1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Unresolved external UDataTable::FinishDestroy(void)
Unresolved external UDataTable::Serialize(class FArchive &)
Unresolved external UDataTable::AddReferencedObjects…
For me the best way to do it is with JSON or XML files. Why I can not import these files and use them? Or maybe as a text file?
Thank you, best regards.