When implementing gImGuiUserEventCallback in SDL2 binding causing linker error.
/imgui-Flix01/imgui.cpp.o:(.bss+0x1f0): multiple definition of `gImGuiUserEventCallback'
my code snippet:ImImplVoidDelegateTakingVoidPtr gImGuiUserEventCallback = HandleUserEvent;
It's because of Defination of gImGuiUserEventCallback in imguibindings.cpp, So if I comment it, it works fine.
gImGuiUserEventCallback is already defined in imguibinding.cpp and set to NULL.
So you must just assign it: gImGuiUserEventCallback = &HandleUserEvent;
When implementing
gImGuiUserEventCallback
in SDL2 binding causing linker error.my code snippet:
ImImplVoidDelegateTakingVoidPtr gImGuiUserEventCallback = HandleUserEvent;
It's because of Defination ofgImGuiUserEventCallback
inimguibindings.cpp
, So if I comment it, it works fine.