proletariatgames / unreal.hx

Unreal.hx: Haxe Integration for Unreal
MIT License
424 stars 43 forks source link

Debugger: true flag causes link issues #98

Open waneck opened 6 years ago

waneck commented 6 years ago

The first build after "debugger": true is added to the uhxconfig file, we see some link issues on hxcpp:



52>haxeRuntime.lib(5370fa6a_Debugger.obj) : error LNK2005: "void __cdecl __hxcpp_execution_trace(int)" (?__hxcpp_execution_trace@@YAXH@Z) already defined in haxeRuntime.lib(5370fa6a_Debug.obj)

52>haxeRuntime.lib(5370fa6a_Debugger.obj) : error LNK2005: "void __cdecl __hxcpp_set_debugger_info(char const * *,char const * *)" (?__hxcpp_set_debugger_info@@YAXPEAPEBD0@Z) already defined in haxeRuntime.lib(5370fa6a_Debug.obj)

52>haxeRuntime.lib(5370fa6a_Debugger.obj) : error LNK2005: "class Dynamic __cdecl __hxcpp_dbg_checkedThrow(class Dynamic)" (?__hxcpp_dbg_checkedThrow@@YA?AVDynamic@@V1@@Z) already defined in haxeRuntime.lib(5370fa6a_Debug.obj)

52>   Creating library C:\dev\g3\Game\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-g3-Win64-DebugGame.suppressed.lib and object C:\dev\g3\Game\Intermediate\Build\Win64\UE4Editor\DebugGame\UE4Editor-g3-Win64-DebugGame.suppressed.exp

52>haxeRuntime.lib(5370fa6a_Debugger.obj) : error LNK2019: unresolved external symbol "void __cdecl __hxcpp_dbg_getScriptableFiles(class Array<class String>)" (?__hxcpp_dbg_getScriptableFiles@@YAXV?$Array@VString@@@@@Z) referenced in function "class Array<class String> __cdecl __hxcpp_dbg_getFiles(void)" (?__hxcpp_dbg_getFiles@@YA?AV?$Array@VString@@@@XZ)

52>haxeRuntime.lib(5370fa6a_Debugger.obj) : error LNK2019: unresolved external symbol "void __cdecl __hxcpp_dbg_getScriptableFilesFullPath(class Array<class String>)" (?__hxcpp_dbg_getScriptableFilesFullPath@@YAXV?$Array@VString@@@@@Z) referenced in function "class Array<class String> __cdecl __hxcpp_dbg_getFilesFullPath(void)" (?__hxcpp_dbg_getFilesFullPath@@YA?AV?$Array@VString@@@@XZ)

52>haxeRuntime.lib(5370fa6a_Debugger.obj) : error LNK2019: unresolved external symbol "void __cdecl __hxcpp_dbg_getScriptableClasses(class Array<class String>)" (?__hxcpp_dbg_getScriptableClasses@@YAXV?$Array@VString@@@@@Z) referenced in function "class Array<class String> __cdecl __hxcpp_dbg_getClasses(void)" (?__hxcpp_dbg_getClasses@@YA?AV?$Array@VString@@@@XZ)

52>Binaries\Win64\UE4Editor-X-Win64-DebugGame.dll : fatal error LNK1120: 3 unresolved externals```

Deleting the old build directory and forcing a new hxcpp build fixes it