PDA

View Full Version : How to link the glew library into an OpenGl program



farrington
03-10-2013, 03:54 PM
This is what I type on the terminal:
g++ -o a glm.o Test-Load-ObjFile.o -lGlEW -lglut -lGL -lGLU

This is the error I get:
/usr/bin/ld: cannot find -lGlEW
collect2: ld returned 1 exit status

My distrubutuion is Ubuntu 12.04 x86_64

How can I solve this?

menzel
03-11-2013, 02:17 AM
Hello,


as G E and W are upper case, try to write the l in upper case also: -lGLEW.
I can sstill be possible that you don't have the libs installed (but I guess you have as you probably included the glew.h and that was present).