http://user.xmission.com/~nate/glut.htmlNo to ściągam sobie glut.dll. A potem wrzucam zawartość.
1.glut32.dll do system32 (ta ??) wrzuciłem ,też do pliku exe na wszelki.
2.header do GL w include.
3.glut32.lib do lib.
No i wyrzuca mi potem undefined reference
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x1c): undefined reference to `__glutInitWithExit'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x37): undefined reference to `__glutCreateWindowWithExit'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x52): undefined reference to `__glutCreateMenuWithExit'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x82): undefined reference to `_imp__glClearColor'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x90): undefined reference to `_imp__glClear'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0xb1): undefined reference to `_imp__glColor3f'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0xbf): undefined reference to `_imp__glBegin'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0xe0): undefined reference to `_imp__glVertex3f'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x101): undefined reference to `_imp__glVertex3f'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x122): undefined reference to `_imp__glVertex3f'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x143): undefined reference to `_imp__glVertex3f'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x14a): undefined reference to `_imp__glEnd'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x151): undefined reference to `_imp__glFlush'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x158): undefined reference to `glutSwapBuffers'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x1ae): undefined reference to `glutInitDisplayMode'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x1c2): undefined reference to `glutInitWindowSize'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x1da): undefined reference to `glutDisplayFunc'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x1e6): undefined reference to `glutReshapeFunc'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x206): undefined reference to `glutAddMenuEntry'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x212): undefined reference to `glutAttachMenu'
[Linker error] C:\DOCUME~1\a\USTAWI~1\Temp\ccKj0vEs.o:pierwszy.cpp:(.text+0x217): undefined reference to `glutMainLoop'
collect2: ld returned 1 exit status
Testowałem ten kod
http://cpp0x.pl/kursy/Kurs-OpenGL-C++/Pierwszy-program/103A i używam code::block i devcpp.