SFML community forums
Help => General => Topic started by: JohnSon123 on November 16, 2018, 07:55:22 pm
-
(I use SFML version 2.4.2)
I'm trying to connect ImGui(https://github.com/eliasdaler/imgui-sfml) to my project but get linking errors. To solve the problem I tried to connect glew and glfw, but it did not help.
-
Did you not include imgui_widgets.cpp in your project?
-
I did everything according to this instruction(https://eliasdaler.github.io/using-imgui-with-sfml-pt1/)
I added only imgui.cpp/imgui_draw.cpp/imgui-SFML.cpp/imgui_demo.cpp.
-
That guide is 2 years old. You should follow imgui readme from their repo, they split some code into this new file only few months ago. They sometimes make such drastic changes, once they changed the API abruptly which broke imgui-SFML. I had a script to make a single hpp/cpp pair out of imgui and imgui-SFML but now it's outdated too. :P
-
Connecting imgui_widgets.cpp helped, thanks :)