Closed traw closed 6 years ago
This is a duplicate of https://github.com/Flix01/imgui/issues/22 (you should have reopened that).
Anyway, there's only only definition of ImImplVoidDelegateTakingVoidPtr gImGuiUserEventCallback = NULL;
, and it's at line number 20 of imguibindings.cpp.
If you have multiple definitions, it means you have defined it somewhere else (for example in your file: app.cpp).
Can you try to: option (1): declare it extern in app.cpp, or option (2): just include imguibindings.h from app.cpp, removing the additional declaration of gImGuiUserEventCallback from it and see if it works ?
Otherwise you must have compiled imguibindings.cpp twice (maybe included from multiple cpp files). Can you check it please ?
Thanks I'll look check that
Thanks for pointing it out I just check I have defined it in my application.
I am using CMake to compile imgui with SDL-bindings, It give following error
If I comment line number 20 of imguibindings.cpp
it works fine. I think it's consequence of
extern
keyword.