{"action":"created","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/411","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/411/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/411/events","html_url":"https://github.com/ocornut/imgui/issues/411","id":118215646,"number":411,"title":"Can't build example on Linux invalid conversion from ‘void (*)()’ to ‘void*’","user":{"login":"anthonybakermpls","id":5091417,"avatar_url":"https://avatars.githubusercontent.com/u/5091417?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonybakermpls","html_url":"https://github.com/anthonybakermpls","followers_url":"https://api.github.com/users/anthonybakermpls/followers","following_url":"https://api.github.com/users/anthonybakermpls/following{/other_user}","gists_url":"https://api.github.com/users/anthonybakermpls/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonybakermpls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonybakermpls/subscriptions","organizations_url":"https://api.github.com/users/anthonybakermpls/orgs","repos_url":"https://api.github.com/users/anthonybakermpls/repos","events_url":"https://api.github.com/users/anthonybakermpls/events{/privacy}","received_events_url":"https://api.github.com/users/anthonybakermpls/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-21T19:18:41Z","updated_at":"2015-11-22T17:07:40Z","closed_at":null,"body":"Trying to build the SDL opengl 3 example gives the following error:\r\n\r\n$c++ `sdl2-config --cflags` -I ../.. -I ../libs/gl3w main.cpp imgui_impl_sdl_gl3.cpp ../../imgui*.cpp ../libs/gl3w/GL/gl3w.c `sdl2-config --libs` -lGL -o sdl2example\r\n../libs/gl3w/GL/gl3w.c: In function ‘void* get_proc(const char*)’:\r\n../libs/gl3w/GL/gl3w.c:85:25: error: invalid conversion from ‘void (*)()’ to ‘void*’ [-fpermissive]\r\n  res = glXGetProcAddress((const GLubyte *) proc);\r\n\r\n\r\n\r\nwhen i do -fpermissive:\r\n\r\n$c++ -fpermissive `sdl2-config --cflags` -I ../.. -I ../libs/gl3w main.cpp imgui_impl_sdl_gl3.cpp ../../imgui*.cpp ../libs/gl3w/GL/gl3w.c `sdl2-config --libs` -lGL -o sdl2example           \r\n../libs/gl3w/GL/gl3w.c: In function ‘void* get_proc(const char*)’:\r\n../libs/gl3w/GL/gl3w.c:85:25: warning: invalid conversion from ‘void (*)()’ to ‘void*’ [-fpermissive]\r\n  res = glXGetProcAddress((const GLubyte *) proc);\r\n                         ^\r\n/usr/bin/ld: /tmp/ccT2hT7y.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'\r\n/lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line\r\ncollect2: error: ld returned 1 exit status\r\n\r\n\r\n\r\n\r\n\r\nNote the sdl_opengl_example/ works fine."},"comment":{"url":"https://api.github.com/repos/ocornut/imgui/issues/comments/158778684","html_url":"https://github.com/ocornut/imgui/issues/411#issuecomment-158778684","issue_url":"https://api.github.com/repos/ocornut/imgui/issues/411","id":158778684,"user":{"login":"anthonybakermpls","id":5091417,"avatar_url":"https://avatars.githubusercontent.com/u/5091417?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonybakermpls","html_url":"https://github.com/anthonybakermpls","followers_url":"https://api.github.com/users/anthonybakermpls/followers","following_url":"https://api.github.com/users/anthonybakermpls/following{/other_user}","gists_url":"https://api.github.com/users/anthonybakermpls/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonybakermpls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonybakermpls/subscriptions","organizations_url":"https://api.github.com/users/anthonybakermpls/orgs","repos_url":"https://api.github.com/users/anthonybakermpls/repos","events_url":"https://api.github.com/users/anthonybakermpls/events{/privacy}","received_events_url":"https://api.github.com/users/anthonybakermpls/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T17:07:40Z","updated_at":"2015-11-22T17:07:40Z","body":"This looks like a really cool library. Thanks for sharing it."}}