this post was submitted on 06 Oct 2023
0 points (50.0% liked)
C++
1783 readers
1 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
65543 seems to be the constant defined for
GLFW_VERSION_UNAVAILABLE
passed back from the error handling code I was looking at in egl_context.c -- that helps confirm I'm looking at the right chunk of code in GLFW's guts, thanks.As I suggested in my other comment, try commenting out the hint lines and see if a window shows up at all. (Your program doesn't do anything other than quit after making the window, so it should just flash a window briefly, I'd expect.)
it just starts and ends with code 0 without creating any output to the terminal or any window
That's because you need to run an event loop, your window is being created successfully, but your program immediately exits after the fact because the line directly after glfwCreateWindow is return EXIT_SUCCESS. You're probably good to follow the rest of the tutorial now
thank you :D