You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a duplicate of #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 ?
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.The text was updated successfully, but these errors were encountered: