pthom / hello_imgui

Hello, Dear ImGui: unleash your creativity in app development and prototyping
https://pthom.github.io/hello_imgui
MIT License
606 stars 91 forks source link

Linux build error when using glfw #9

Closed codecat closed 3 years ago

codecat commented 3 years ago

On Archlinux I am getting the following error when compiling with HELLOIMGUI_USE_GLFW_OPENGL3.

/usr/bin/ld: external/hello_imgui/external/libglad.a(glad.c.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'

I can fix this by linking with dl, but perhaps this should be fixed in the library directly:

https://github.com/pthom/hello_imgui/blob/4ae3507a96ef5483efe76ca5579c61be215f00df/src/hello_imgui/CMakeLists.txt#L108

pthom commented 3 years ago

Hi, thanks for letting me know! This problem did not occur on Ubuntu; anyhow, since the fix is harmless, I fixed in 6e5e420 (for both sdl and glfw).