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:
...
- 03-15-2007 #1
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:
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.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
Thanks
- 03-15-2007 #2
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.


Reply With Quote
