Jim Cheetham wrote:
On Sun, Aug 03, 2003 at 04:09:51PM +1200, Chris Wilkinson wrote:
/usr/bin/ld: cannot find -lGLU
Obviously the compiler can find gl.h but not glu.h. This is odd to me since glu.h sits in /usr/include/GL/ right next to gl.h. Does anyone have any clues as to why this might not work for me?
The compiler (gcc) will be looking for include/header files, like glu.h. However, the linker (ld) is looking for library objects, usually named something like libGLU.so or libGLU.a, probably from /usr/lib
If these files are not found in the normal search path for the linker, you might have to specify additional library locations, possibly as a parameter to configure or make. You could just add a -L argument to the gcc commdna line, specifying the correct location for additional libraries, but it's probably better to do it via configure.
OK, but there is no libGLU.so.* on my system, nor can I find a packaged one with rpmdrake under mcc. Thats odd, but never mind I'll get one from the net and see what happens...
Kind regards,
Chris Wilkinson, Christchurch.
