I want Help with GLFW Window Not Showing on My Setup

Hey everyone,

I am new to GLFW and trying to get a simple window up and running but I am stuck & want help. I followed the basic setup from the docs and built my app but when I run it, the window does not show up at all — no errors, no crashes, just nothing.

I am on Windows 10, using Visual Studio 2022 & I linked all the libraries as instructed. I did a minimal code example that basically creates a window and calls glfwShowWindow() but it never actually appears on screen.

I finished some Java Training so I am still learning how to set up projects and manage dependencies properly in other languages such as, C++ & GLFW.

Has anyone else faced this before? Any ideas on what I might be missing? Could it be related to how I am initializing GLFW or maybe some issue with my graphics drivers? I am open to any debugging tips or example code snippets that work.

Thank you.:slight_smile:

Hi & welcome to the GLFW forum,

You might want to try building one of the GLFW examples from the source distribution, or alternatively this GLFW CMake starter. You’ll need CMake installed, but then you can use that to generate the Visual Studio solution using the instructions in the readme.

If your current example builds but doesn’t work the issue may just be related to your source code, check out the simple example on the front page and the GLFW tutorial page to see what might be wrong or post your code here.

Good luck!