linker isn't recognizing gl.h functions
greets-
I''ve tried compiling all of the http://nehe.gamedev.net tuts that have sdl and/or glx support and I always get linker errors that start out like:
/tmp/ccCXeskK.o: In function `resizGLScene'':
/tmp/ccCXeskK.o(.text+0x20): undefined reference to `glViewport''
I''m running Debian Linux with a 2.4.19 kernel and the latest drivers (glx and kernel module) from nvidia. I''m pretty sure I have all the packages I need. Why isn''t this compiling? My gl sources are in the right place. /usr/include/GL/*
-cyn0n
quote:Original post by cyn0n
/tmp/ccCXeskK.o: In function `resizGLScene'':
/tmp/ccCXeskK.o(.text+0x20): undefined reference to `glViewport''
gcc <sourcefiles> -I <include paths> -L <library paths> -lgl -lglu etc
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement