On 19-Nov-99 Lukasz Gogolewski wrote:
> Hello,
> Whenever I'm trying to compile any program under mesa I get the
> following error messages:
> 
> 
> [root@localhost OpenGL]# make gears
> cc -Iinclude  gears.c -Llib -lglut -lMesaGLU -lMesaGL -lm  -o gears
> lib/libglut.a(glut_event.o): In function `interruptibleXNextEvent':
> glut_event.o(.text+0x336): undefined reference to `XFlush'
> glut_event.o(.text+0x347): undefined reference to `XPending'
> ...


Since you use statically linked libglut.a you must link your executable
with all the X librarys libglut requires...

You better use a dynamically linked libglut.so which should be linked
against all required libraries.

Andree



_______________________________________________
Mesa-bug maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-bug


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to