Closed sarahkittyy closed 1 year ago
Hello. Check this out and see if this works for you: https://github.com/eliasdaler/imgui-sfml-fetchcontent/tree/master
If it does, see what your CMake build is doing differently and try to figure out what goes wrong. Maybe something broke in the latest version of Dear ImGui? Try to use an older version.
I tried submodules, ExternalProject, FetchContent, all sorts of things, and what ended up working was just integrating manually, copying the imconfig-SFML.h over and including all the source files of both directly to the build
I don't believe that's a good long-term solution. Did you try the repo I've linked? It should work, I think.
When compiling I get
unresolved external symbol "struct ImGuiContext * GImGui" (?GImGui@@3PEAUImGuiContext@@EA)
. Works just fine on linux. This is on VS2019 with CMake.CMakeLists.txt:
I've been up since midnight trying to figure this out lol. The linker error is referencing this file: https://github.com/sarahkittyy/blockquest-remake/blob/main/game/gui/editor_tile_button.cpp