Witam
Dzisiaj pierwszy raz zainstalowalem linuxa konkretnie Ubuntu ,na uczelni korzystałem z linuxa ale tam wszystko działało wporządku nic nie musieliśmy instalować ani konfigurować.U siebie przy prubie kompilacji programu wyskakuje mi błąd na uczelni działał wiec niewiem czy muszę coś doinstalować?prosił bym o jakiś dokładny opis jak rozwiązać mój problem gdyż bardzo słabo jestem rozeznany w linuxie
gcc demo.c -lglut -o demo
demo.c:1:21: error: GL/glut.h: No such file or directory
demo.c:2:19: error: stdio.h: No such file or directory
demo.c: In function ‘myInit’:
demo.c:8: error: ‘GLfloat’ undeclared (first use in this function)
demo.c:8: error: (Each undeclared identifier is reported only once
demo.c:8: error: for each function it appears in.)
demo.c:8: error: expected ‘;’ before ‘light_position’
demo.c:9: error: expected ‘;’ before ‘light_color’
demo.c:11: error: ‘GL_FRONT’ undeclared (first use in this function)
demo.c:11: error: ‘GL_DIFFUSE’ undeclared (first use in this function)
demo.c:13: error: ‘GL_LIGHT0’ undeclared (first use in this function)
demo.c:13: error: ‘GL_AMBIENT’ undeclared (first use in this function)
demo.c:13: error: ‘light_color’ undeclared (first use in this function)
demo.c:14: error: ‘GL_POSITION’ undeclared (first use in this function)
demo.c:14: error: ‘light_position’ undeclared (first use in this function)
demo.c:16: error: ‘GL_LIGHTING’ undeclared (first use in this function)
demo.c:18: error: ‘GL_LEQUAL’ undeclared (first use in this function)
demo.c:19: error: ‘GL_DEPTH_TEST’ undeclared (first use in this function)
demo.c:21: error: ‘GL_SMOOTH’ undeclared (first use in this function)
demo.c: At top level:
demo.c:26: error: expected ‘)’ before ‘w’
demo.c: In function ‘myDisplay’:
demo.c:43: error: ‘GLUT_ELAPSED_TIME’ undeclared (first use in this function)
demo.c:45: error: ‘GL_COLOR_BUFFER_BIT’ undeclared (first use in this function)
demo.c:45: error: ‘GL_DEPTH_BUFFER_BIT’ undeclared (first use in this function)
demo.c:46: error: ‘GL_COLOR_MATERIAL’ undeclared (first use in this function)
demo.c:87: warning: incompatible implicit declaration of built-in function ‘printf’
demo.c:88: warning: incompatible implicit declaration of built-in function ‘exit’
demo.c:90: warning: incompatible implicit declaration of built-in function ‘printf’
demo.c: In function ‘main’:
demo.c:108: error: ‘GLUT_DOUBLE’ undeclared (first use in this function)
demo.c:108: error: ‘GLUT_RGB’ undeclared (first use in this function)
demo.c:108: error: ‘GLUT_DEPTH’ undeclared (first use in this function)
demo.c:114: error: ‘myReshape’ undeclared (first use in this function
arctgx:
http://forum.linux.pl/help.php#bbcode