Reputation: 1
When I am compiling simple examples it works with the following compiler instructions, but I don't understand them in detail:
clang -o name name.cpp -L/usr/local/lib -lglfw -lGLEW -framework OpenGL
I understand the -o flag for the executable file and also the -L flag which clarifies where the compiler should search for libraries to use.
But when it comes to the -lglfw or -lGLEW flags I have no idea what they do. Same for the -framework flag, but there I have an idea what it does.
Also what is the difference between OpenGL, GLEW and GLUT?
Upvotes: 0
Views: 483