PDA

View Full Version : gluPerspective linker error



03-10-2003, 04:55 AM
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?

thanks.

Bob
03-10-2003, 05:04 AM
For GLU-functions, you need glu32.lib.

03-10-2003, 05:38 AM
I had glu32.lib the problem was that lglu32 was not included in my linker options. d'oh.
thanks anyway.