How to link the glew library into an OpenGl program

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?


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).