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

**URL:** <https://discourse.glfw.org/t/glfw-newb-needs-help-segmentation-fault-core-dumped-when-i-run-small-glfw-app/632>\
**Category:** support\
**Created:** [April 1, 2016, 4:29pm UTC](https://discourse.glfw.org/t/glfw-newb-needs-help-segmentation-fault-core-dumped-when-i-run-small-glfw-app/632 "2016-04-01T16:29:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsmith](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jsmith](https://discourse.glfw.org/u/jsmith)\
**Post date:** [April 1, 2016, 4:29pm UTC](https://discourse.glfw.org/t/glfw-newb-needs-help-segmentation-fault-core-dumped-when-i-run-small-glfw-app/632/1 "2016-04-01T16:29:20Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [April 2, 2016, 8:12pm UTC](https://discourse.glfw.org/t/glfw-newb-needs-help-segmentation-fault-core-dumped-when-i-run-small-glfw-app/632/2 "2016-04-02T20:12:10Z")

</div>

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](http://www.glfw.org/docs/latest/news.html) for more.
