This is the C ++ code that I want to run on my computer: http://pastebin.com/66BEyTWK
On a university computer, this code displays a white square. But when I try to run it on my computer, I get a blank screen.
I read on opengl faq that the problem may be that I am linking to the wrong combination of opengl libraries.
The incoming part of the code assumes that I need to link glm, glew and freeglut.
#include <iostream> #include <GL/glew.h> #include <GL/freeglut.h> #include <glm/glm.hpp>
I read that there is no need to bind glm because it is only a header file. So this is the compilation expression that I came up with:
g++ -o main white_square.cpp -lGL -lglut -lGLEW
At my university, they have a custom make file from which I cannot understand: http://pastebin.com/3DxST3Xs
source share