Link error (gluLookAt,, gluPerpeective)

nobody wrote on Tuesday, February 20, 2007:

Hi,

I have tried to compile GLFW and the test programs (version 2.5). Under Win32 it is OK, but under Linux the linker cannot find gluLookAt and gluPerpective in the GLU library. The build command is the following:

gcc -o test test.c -L./ libglfw.a -L/usr/X11/lib -lGLU -lGL … (more X11 libs)

The GLFW library is in the same directory as the Makefile. AFAIK this should work. GLUT and its test programs (which also use the GLU library) compiled and ran w/o error when using a similar command. I use Zenwalk Linux (a Slackware clone) with kernel 2.6.16.16.

I would appreciate advice on how to solve this problem.

Thanks!

Laszlo Menczel
Szeged, Hungary

elmindreda wrote on Saturday, March 10, 2007:

No idea without more information. Exact commands and output would be helpful.