glad

Segmentation fault when including glad.h

懵懂的女人 提交于 2021-02-05 07:13:25
问题 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

gladLoadGLLoader() fails because glGetString is not found [closed]

孤者浪人 提交于 2020-02-26 04:16:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 days ago . As it seems to be a larger problem to understand my question: It is NOT about any source code or programming implementation, it is about linking an existing and working program! So let me try that again: I have an application which runs on both, Windows and Linux and makes use of the GLAD-wrapper for OpenGL. It