Results 1 to 2 of 2

Thread: Compiler Problems

  1. #1
    Guest

    Compiler Problems

    I am trying to get opengl (specifically glut) to work on my computer. I downloaded the cube example problem and Makefile, and I get this problem when it tries to link

    [egschaub@cfd1]# make
    g++ -Wall -I/usr/X11R6/include/ -o cube -L/usr/X11R6/lib cube.o -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm
    /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXBindChannelToWindowSGIX'
    /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXQueryChannelDeltasSGIX'
    /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXChannelRectSyncSGIX'
    /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXChannelRectSGIX'
    /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglut.so: undefined reference to `glXQueryChannelRectSGIX'
    collect2: ld returned 1 exit status
    make: *** [cube] Error 1

    Anyone know how I can correct this problem.
    Thanks,
    Ed

    P.S. Does the same if I use gcc.

  2. #2
    Guest

    Re: Compiler Problems

    You need to link with the GLX routines as well. I'm not sure exactly where you'd find these, but adding -lGLX to your link line might be a good start!

Similar Threads

  1. Compiler Problems
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 08-28-2004, 07:05 PM
  2. GLUT Problems with Watcom Compiler
    By egrath in forum OpenGL: General
    Replies: 0
    Last Post: 07-20-2004, 06:06 AM
  3. WIERD VC6 compiler problems!
    By Rob123 in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 02-07-2002, 12:48 AM
  4. I Need some help with my compiler
    By TheMad1 in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 07-23-2001, 05:50 AM
  5. help with my compiler
    By TheMad1 in forum OpenGL: User Software
    Replies: 0
    Last Post: 07-21-2001, 02:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean