[root@eng-4 openGL]# gcc ./aaindex.c
/tmp/ccITg1Wa.o: In function `init':
aaindex.c:(.text+0x40): undefined reference to `glutSetColor'
aaindex.c:(.text+0x67): undefined reference to `glutSetColor'
aaindex.c:(.text+0x7d): undefined reference to `glEnable'
aaindex.c:(.text+0x91): undefined reference to `glHint'
aaindex.c:(.text+0x9e): undefined reference to `glLineWidth'
aaindex.c:(.text+0xab): undefined reference to `glClearIndex'
/tmp/ccITg1Wa.o: In function `display':
aaindex.c:(.text+0xbf): undefined reference to `glClear'
aaindex.c:(.text+0xcb): undefined reference to `glIndexi'
aaindex.c:(.text+0xd0): undefined reference to `glPushMatrix'
aaindex.c:(.text+0xfb): undefined reference to `glRotatef'
aaindex.c:(.text+0x107): undefined reference to `glBegin'
aaindex.c:(.text+0x11d): undefined reference to `glVertex2f'
aaindex.c:(.text+0x133): undefined reference to `glVertex2f'
aaindex.c:(.text+0x138): undefined reference to `glEnd'
aaindex.c:(.text+0x13d): undefined reference to `glPopMatrix'
aaindex.c:(.text+0x149): undefined reference to `glIndexi'
aaindex.c:(.text+0x14e): undefined reference to `glPushMatrix'
aaindex.c:(.text+0x177): undefined reference to `glRotatef'
aaindex.c:(.text+0x183): undefined reference to `glBegin'
aaindex.c:(.text+0x199): undefined reference to `glVertex2f'
aaindex.c:(.text+0x1af): undefined reference to `glVertex2f'
aaindex.c:(.text+0x1b4): undefined reference to `glEnd'
aaindex.c:(.text+0x1b9): undefined reference to `glPopMatrix'
aaindex.c:(.text+0x1be): undefined reference to `glFlush'
/tmp/ccITg1Wa.o: In function `reshape':
aaindex.c:(.text+0x1e8): undefined reference to `glViewport'
aaindex.c:(.text+0x1f4): undefined reference to `glMatrixMode'
aaindex.c:(.text+0x1f9): undefined reference to `glLoadIdentity'
aaindex.c: (.text+0x231): undefined reference to `gluOrtho2D'
aaindex.c:(.text+0x263): undefined reference to `gluOrtho2D'
aaindex.c:(.text+0x26f): undefined reference to `glMatrixMode'
aaindex.c:(.text+0x274): undefined reference to `glLoadIdentity'
/tmp/ccITg1Wa.o: In function `keyboard':
aaindex.c:(.text+0x2d7): undefined reference to `glutPostRedisplay'
/tmp/ccITg1Wa.o: In function `main':
aaindex.c:(.text+0x30a): undefined reference to `glutInit'
aaindex.c:(.text+0x316): undefined reference to `glutInitDisplayMode'
aaindex.c:(.text+0x32a): undefined reference to `glutInitWindowSize'
aaindex.c:(.text+0x337): undefined reference to `glutCreateWindow'
aaindex.c:(.text+0x348): undefined reference to `glutReshapeFunc'
aaindex.c:(.text+0x354): undefined reference to `glutKeyboardFunc'
aaindex.c:(.text+0x360): undefined reference to `glutDisplayFunc'
aaindex.c:(.text+0x365): undefined reference to `glutMainLoop'
collect2: ld returned 1 exit status


Peguei isso tentando compilar um exemplo do redbook do openGL... Alguem tem noçao do pq?

--
Leonardo Korndorfer
x50/x6F/x72/x20/x66/x61/x76/x6F/x72/x21/x20/x4E/x61/x6F/x20/x61/x63/x72/x65/x64/x69/x74/x6F/x20/x71/x75/x65/x20/x74/x75/x20/x74/x65/x20/x64/x65/x73/x74/x65/x20/x6F/x20/x74/x72/x61/x62/x61/x6C/x68/x6F/x20/x64/x65/x20/x74/x72/x61/x64/x75/x7A/x69/x72/x20/x69/x73/x73/x6F/x21/x20

alt.not.root.coffe.coffe.coffe

A monk asked Joshu, "Does a dog have the Buddha nature?
Joshu retorted, "Mu!"

MSN: leokorndorfer@hotmail.com
ICQ: 102788426
Mac OS X + FC 5 + Slack 10