[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling OpenGL on Debian



On Wed, Sep 04, 2002 at 02:10:55PM -0400, ThanhVu Nguyen wrote:
> I am trying to compile opengl code and have the following errors 
> 
> gcc -Wall -I/usr/X11R6/include/ -o cube -L/usr/X11R6/lib cube.o -lX11
> -lXi -lXmu -lglut -lGL -lGLU -lm
> /usr/X11R6/lib/libGL.a(glxext.o): In function `__glXGetCurrentContext':
> glxext.o(.text+0x1a): undefined reference to `pthread_key_create'
> glxext.o(.text+0x31): undefined reference to `pthread_getspecific'

Looks like you need to add the -lpthread option to link the pthread
library.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: