Why do I fail to create a window with GLFW on Windows?
c++, glfw, opengl, windows
Solution
Looks like there is an issues with your OpenGL drivers on Windows.
Try to check and update your OpenGL drivers :
- Install an OpenGL viewer, such as the GLview utility, to view the OpenGL version installed on your machine.
- For Windows XP, Windows Vista, and Windows 7, open the viewer to find the version and driver version under OpenGL running on your computer.
- Click the “Check for updated drivers” link to identify if any driver updates are necessary.
Excerpts taken from this website.
Problem
I'll be glad if someone could please tell me what is the issue here: ``` int main() { glfwWindowHint(GLFW_SAMPLES, 4); glfwWindowHint(GLFW_VERSION_MAJOR, 3); glfwWindowHint(GLFW_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); GLFWwindow* window; window = glfwCreateWindow(1024, 768, "window", NULL, NULL); } ```