GLFW newb needs help. Segmentation fault (core dumped) when I run small glfw app

My OS is fedora 23. I have the mesa-libGL-devel and glfw-devel libs both installed.

I compile the program from the bottom of this page http://www.glfw.org/docs/latest/quick.html with:
gcc main.c -lglfw -lGL -o thing
and it compiles no problem.

but when i ./thing i get:
Segmentation fault (core dumped)

What gives, do I not have all the needed libs installed?
!!!1111111!!!
I SOLVED THE PROBLEM!
I WAS ON GNOME WAYLAND AND I NEEDED ME TO BE ON GNOME X11!
SORRY ALL

Excellent, glad you’ve solved it. GLFW now has experimental Wayland support but this needs to be selected via a compile option. See http://www.glfw.org/docs/latest/news.html for more.