Segmentation fault when including glad.h
问题 I am following the GLFW guide to getting started but I can't seem to make it run with GLAD. Here's my C file (prac.c) #include <stdio.h> #include <stdlib.h> #include<glad/glad.h> #include<GLFW/glfw3.h> void error_callback(int error, const char* description) { fprintf(stderr, "Error %d: %s\n", error, description); } int main(void) { GLFWwindow* window; if(!glfwInit()) return -1; glfwSetErrorCallback(error_callback); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT