Bonjour tout le monde et bonne année !!![]()
Je suis tout nouveau dans le monde de la programmation OpenGL en C.
Mon problème est en fait que lors de la compilation d'un code en C OpenGL j'ai des erreurs de ce type:
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x17):hello.c: undefined reference to `__glutInitWithExit'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x33):hello.c: undefined reference to `__glutCreateWindowWithExit'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x57):hello.c: undefined reference to `__glutCreateMenuWithExit'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x81):hello.c: undefined reference to `_imp__glClear'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x9e):hello.c: undefined reference to `_imp__glColor3f'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0xae):hello.c: undefined reference to `_imp__glBegin'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0xd6):hello.c: undefined reference to `_imp__glVertex3f'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0xfe):hello.c: undefined reference to `_imp__glVertex3f'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x126):hello.c: undefined reference to `_imp__glVertex3f'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x14e):hello.c: undefined reference to `_imp__glVertex3f'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x159):hello.c: undefined reference to `_imp__glEnd'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x161):hello.c: undefined reference to `_imp__glFlush'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x189):hello.c: undefined reference to `_imp__glClearColor'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x19c):hello.c: undefined reference to `_imp__glMatrixMode'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x1a7):hello.c: undefined reference to `_imp__glLoadIdentity'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x1d8):hello.c: undefined reference to `_imp__glOrtho'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x214):hello.c: undefined reference to `glutInitDisplayMode'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x229):hello.c: undefined reference to `glutInitWindowSize'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x238):hello.c: undefined reference to `glutInitWindowPosition'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x25d):hello.c: undefined reference to `glutDisplayFunc'
d:\sauvegardes\devc++\exercices\opengl\1-1\hello.o(.text+0x265):hello.c: undefined reference to `glutMainLoop'
Pour éviter les questions idiotes, oui, j'ai bien #include <GL/glut.h> !! lol
Pourquoi ces erreurs ?? j'ai bien mis "glut32.dll" dans mon dossier système et les autres fichier comme "glut.h" dans le dossier "GL" de "Include" !!!!
Je ne vois pas quoi faire d'autre alors je suis un petit peu désemparé !!
Je suis sous XP Home avec Dev-C++ 4 comme EDI pour la programmation C et OpenGL !!
Merci pour vos lumières !!
CSoldier
Partager