Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am trying to compile a C program and at first it was looking for glut.h. So I downloaded and installed it but now when compile I get this: ...
  1. #1
    mss
    mss is offline
    Just Joined! mss's Avatar
    Join Date
    Jan 2006
    Posts
    45

    GLUT and MISSING FILES.

    Hi, I am trying to compile a C program and at first it was looking for glut.h. So I downloaded and installed it but now when compile I get this:
    Code:
    gcc -g -Wall `pkg-config --cflags --libs glib-2.0` -lglut -lglu -lgl -lm -o universe universe.c controller.c
    /usr/bin/ld: cannot find -lglu
    collect2: ld returned 1 exit status
    From what I understand glu is part of glut so I have no idea what is going on here. why would some of the file be included at the rest not.

    Thanks

  2. #2
    mss
    mss is offline
    Just Joined! mss's Avatar
    Join Date
    Jan 2006
    Posts
    45
    So it took me about a day but I finally found it. The solution is really simple. glu and gl must be spelled UPPERCASE. so the command for gcc is -lGLU -lGL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •