Lorsque je compile sous codeblock j'ai toujours cette erreur malgre que glut est dans le repertoire.
la je me block a un mur prourriez-vous m'aider
:\MinGW\mingw32\include/GL/glut.h:518:25: warning: 'int glutCreateMenu_ATEXIT_HACK(void (__attribute__((__cdecl__)) *)(int))' defined but not used [-Wunused-function]
mingw32-g++.exe -o bin\Release\01sept-cube6.exe obj\Release\main.o -s
obj\Release\main.o:main.cpp:(.text+0xd): undefined reference to `_imp__glutPostRedisplay@0'
obj\Release\main.o:main.cpp:(.text+0x3d): undefined reference to `_imp__glutPostRedisplay@0'
obj\Release\main.o:main.cpp:(.text+0x79): undefined reference to `_imp__glutPostRedisplay@0'
obj\Release\main.o:main.cpp:(.text+0x90): undefined reference to `_imp__glutGet@4'
obj\Release\main.o:main.cpp:(.text+0xb2): undefined reference to `glClear@4'
obj\Release\main.o:main.cpp:(.text+0xc7): undefined reference to `glColor3d@24'
obj\Release\main.o:main.cpp:(.text+0xcf): undefined reference to `glPushMatrix@0'
obj\Release\main.o:main.cpp:(.text+0x530): undefined reference to `glMatrixMode@4'
obj\Release\main.o:main.cpp:(.text+0x539): undefined reference to `glLoadIdentity@0'
obj\Release\main.o:main.cpp:(.text.startup+0x2e): undefined reference to `_imp____glutInitWithExit@12'
Process terminated with status 1 (0 minute(s), 2 second(s))
50 error(s), 1 warning(s) (0 minute(s), 2 second(s))
Partager