ocornut / imgui

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
MIT License
60.24k stars 10.2k forks source link

Undefined reference to 'ImGui::CreateContext' #6834

Closed Bekobii closed 1 year ago

Bekobii commented 1 year ago

Discussed in https://github.com/ocornut/imgui/discussions/6833

Originally posted by **Bekobii** September 18, 2023 Hey, I've been installing ImGUI via VCPKG and always get the same error as stated in the title. `undefined reference to ImGui::Begin(char const*, bool*, int)` This is how I import it via CMake. ``` find_package(glfw3 CONFIG REQUIRED) find_package(imgui CONFIG REQUIRED) target_link_libraries(TestApp PRIVATE glfw) target_link_libraries(TestApp PRIVATE imgui::imgui) ``` GLFW does work but not imgui
ocornut commented 1 year ago

Hello @Bekobii, no need to open another issue. The discussion in #6833 is adequate.