Running mac os x c++ program working with OpenGL 3.3
I am running Mac OS X Sierra 10.12.6 (16G29). I am working on a macbook pro. I have installed brew and the following packages: brew install glfw3 brew install glew brew install glm Here is my c++ program: #include <iostream> #include <GLFW/glfw3.h> GLFWwindow* window; #include <GL/gl.h> int main(int argc, const char * argv[]) { if (!glfwInit()) { return -1; } glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); // Should be true for macOS, according to GLFW docs, to get core profile. glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // According to