The code compiles without any errors. At runtime the code results in a segmentation fault. Using gdb I managed to find out that the line the application crashes on it the call to gtk_dialog_run. Does anyone know why this could be happening?
Could it have something to do with the fact that I initialize GLFW after I initialize GTK? Maybe it uses GTK internally and it could be initialized twice?
EDIT:
It appears the call to glfwInit was the problem. Calling glfwInit after calling gtk_init seems to cause some parts of GTK3 to cause segmentation faults. The problem was solves by calling glfwInit before Platform::Initialize.
Thank you for your help. I thought GTK code was the problem.