gluPerspective linker error

Hi all, I’m new to opengl and everytime I try to compile the most basic nehe tutorial I get the following linker error:

undefined reference to `gluPerspective’.

I’ve tried including the opengl libraries with lines such as, #pragma comment (lib, “opengl32.lib”) but still nothing. I’m using Dev C++, can anyone help please?


For GLU-functions, you need glu32.lib.

I had glu32.lib the problem was that lglu32 was not included in my linker options. d’oh.
thanks anyway.