HoudiniEngineForUnreal icon indicating copy to clipboard operation
HoudiniEngineForUnreal copied to clipboard

Linker Error Building EngineTest

Open IvayloH opened this issue 1 year ago • 0 comments

`[62/63] Link [x64] EngineTestEditorCooked.exe HoudiniBakeLevelInstanceUtils.cpp.obj : error LNK2005: "bool __cdecl operator==(struct FHoudiniLevelInstanceParams const &,struct FHoudiniLevelInstanceParams const &)" (??8@YA_NAEBUFHoudiniLevelInstanceParams@@0@Z) already defined in HoudiniLevelInstanceUtils.cpp.obj

HoudiniBakeLevelInstanceUtils.cpp.obj : error LNK2005: "unsigned int __cdecl GetTypeHash(struct FHoudiniLevelInstanceParams const &)" (?GetTypeHash@@YAIAEBUFHoudiniLevelInstanceParams@@@Z) already defined in HoudiniLevelInstanceUtils.cpp.obj Creating library ...\EngineTest\Binaries\Win64\EngineTestEditorCooked.lib and object ...\EngineTest\Binaries\Win64\EngineTestEditorCooked.exp

...\EngineTest\Binaries\Win64\EngineTestEditorCooked.exe : fatal error LNK1169: one or more multiply defined symbols found`

Locally fixed by removing both implementations from the Utils files and instead implementing them inside the FHoudiniLevelInstanceParams struct itself.

IvayloH avatar May 09 '24 09:05 IvayloH