sideeffects / HoudiniEngineForUnreal

Houdini Engine Plugin for Unreal Engine.
http://www.sidefx.com/unreal
Other
1.3k stars 368 forks source link

Linker Error Building EngineTest #301

Open IvayloH opened 1 month ago

IvayloH commented 1 month ago

`[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.