Results 1 to 3 of 3

Thread: compiling example from Kilgard

  1. #1

    compiling example from Kilgard

    I'm trying to work through the first chapter of Kilgard's OpenGL for X book and I'm having problems getting the glxsimple example on page 31 to compile. The command I'm using (from the book) is:

    gcc -o glxsimple glxsimple.c -lGL -lXext -lX11

    and the error is:

    /usr/bin/ld: cannot find -lXext
    collect2: ld returned 1 exit status

    I saw this somewhere else on the web, and that page suggested the same command sans "-lXext", which I tried, but received the same error with "-lX11". I'm running Debian unstable and I've got the xlibs-dev package installed. I'm sure I'm missing something obvious, but I haven't done much with this stuff so I'm going crazy trying to figure out what. Any suggestions? (RTFM is fine with me, just tell me which one...)

  2. #2

    Re: compiling example from Kilgard

    just add -L/usr/X11/lib or whereever your
    X11-libraries lie

  3. #3

    Re: compiling example from Kilgard

    Duh. Damn, I knew it was going to be something stupid like that. Thanks!

Similar Threads

  1. Replies: 47
    Last Post: 08-01-2013, 03:01 PM
  2. Compiling with gcc
    By in forum OpenGL: Linux
    Replies: 4
    Last Post: 09-06-2005, 02:53 PM
  3. compiling help please
    By in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 06-28-2003, 07:25 PM
  4. Help about Gl Nurbs in display lists and M.Kilgard molehill example
    By Mark Schwarz in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 04-29-2003, 01:09 AM
  5. Compiling help
    By dromoz in forum OpenGL: Linux
    Replies: 3
    Last Post: 10-07-2002, 10:22 AM

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