[Fedora-users-br] OpenGL

Jeferson A. Cassol jeferson.cassol em gmail.com
Qua Jan 3 20:26:04 UTC 2007



Tah faltando a inclusao das libs que contem essas funcoes...
nunca usei essas libs.... mas tenta colocar "-lglut -lGLU -lGL"....
-- 
--
Jeferson A. Cassol



Em Quarta 03 Janeiro 2007 12:25, Leonardo Korndorfer escreveu:
> [root em 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?
-------------- Próxima Parte ----------
Um anexo não-texto foi limpo...
Nome: não disponível
Tipo: application/pgp-signature
Tamanho: 189 bytes
Descrição: não disponível
URL: <http://listman.redhat.com/archives/fedora-users-br/attachments/20070103/5ecc9c03/attachment.sig>


Mais detalhes sobre a lista de discussão Fedora-users-br