Choad
August 2nd, 2006, 10:36 AM
i get the following error
richard@richard-laptop:/media/c/Documents and Settings/Richard/Desktop/New Folder$ make
gcc -Wall -I/usr/include/ -c -o lesson4.o lesson4.c
lesson4.c: In function ‘keyPressed’:
lesson4.c:110: warning: implicit declaration of function ‘exit’
lesson4.c:110: warning: incompatible implicit declaration of built-in function ‘exit’
gcc -Wall -I/usr/include/ -o lesson4 -L/usr/X11R6/lib lesson4.o -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [lesson4] Error 1
rm lesson4.o
i got a lot of other errors before, but i read through and installed glut and mesa - that solved a lot of the errors, but now i am left with this and i dont know what to do
i am trying to compile this (http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=04) tutorial (using this (http://nehe.gamedev.net/data/lessons/linux/lesson04.tar.gz) source code)
please help!
richard@richard-laptop:/media/c/Documents and Settings/Richard/Desktop/New Folder$ make
gcc -Wall -I/usr/include/ -c -o lesson4.o lesson4.c
lesson4.c: In function ‘keyPressed’:
lesson4.c:110: warning: implicit declaration of function ‘exit’
lesson4.c:110: warning: incompatible implicit declaration of built-in function ‘exit’
gcc -Wall -I/usr/include/ -o lesson4 -L/usr/X11R6/lib lesson4.o -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [lesson4] Error 1
rm lesson4.o
i got a lot of other errors before, but i read through and installed glut and mesa - that solved a lot of the errors, but now i am left with this and i dont know what to do
i am trying to compile this (http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=04) tutorial (using this (http://nehe.gamedev.net/data/lessons/linux/lesson04.tar.gz) source code)
please help!