[debutant] [Linker error] undefined reference to `Display'
bonjour,
comme le titre l'indique, j'ai cette erreur lors de la compilation
[Linker error] undefined reference to `Display'
Voici mon code (il est tout simple pourtant!!!!) :oops:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| #ifdef WIN32
#include <windows.h>
#endif
#include <gl/gl.h>
#include <gl/glut.h>
void Display();
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGBA | GLUT_SINGLE);
glutInitWindowSize(640, 480);
glutInitWindowPosition(50, 50);
glutCreateWindow("Fenetre OpenGL");
glutDisplayFunc(Display);
glutMainLoop();
return 0;
} |