<HTML>Hallo!
Habe gerade ein kleines OpenGL-Programm, welches unter Linux tadellos läuft, kompilieren wollen.
Am Anfang steht
#include <GL/gl.h>
#include <GL/glut.h>
Ich habe nun, wie in der OpenGL-Readme steht, g++ mit den Schaltern -lglut32 -lglu32 -lopengl32 gestartet. Es gibt mir folgende Fehlermeldungen aus:
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x26):cohen_sutherland.cpp: undefined reference to `_glClearColor@16'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x45):cohen_sutherland.cpp: undefined reference to `_glColor3f@12'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x54):cohen_sutherland.cpp: undefined reference to `_glMatrixMode@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x5c):cohen_sutherland.cpp: undefined reference to `_glLoadIdentity@0'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x94):cohen_sutherland.cpp: undefined reference to `_gluOrtho2D@32'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xac):cohen_sutherland.cpp: undefined reference to `_glClear@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xd5):cohen_sutherland.cpp: undefined reference to `_glViewport@16'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xf4):cohen_sutherland.cpp: undefined reference to `_glColor3f@12'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x103):cohen_sutherland.cpp: undefined reference to `_glBegin@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x11e):cohen_sutherland.cpp: undefined reference to `_glVertex2f@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x139):cohen_sutherland.cpp: undefined reference to `_glVertex2f@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x154):cohen_sutherland.cpp: undefined reference to `_glVertex2f@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x16f):cohen_sutherland.cpp: undefined reference to `_glVertex2f@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x18a):cohen_sutherland.cpp: undefined reference to `_glVertex2f@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x192):cohen_sutherland.cpp: undefined reference to `_glEnd@0'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x1a4):cohen_sutherland.cpp: undefined reference to `_glFlush@0'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x24b):cohen_sutherland.cpp: undefined reference to `_glPointSize@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x26a):cohen_sutherland.cpp: undefined reference to `_glColor3f@12'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x279):cohen_sutherland.cpp: undefined reference to `_glBegin@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x2b4):cohen_sutherland.cpp: undefined reference to `_glVertex2f@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x2bc):cohen_sutherland.cpp: undefined reference to `_glEnd@0'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x2c8):cohen_sutherland.cpp: undefined reference to `_glPointSize@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x385):cohen_sutherland.cpp: undefined reference to `_glColor3f@12'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x3a6):cohen_sutherland.cpp: undefined reference to `_glColor3f@12'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x3b5):cohen_sutherland.cpp: undefined reference to `_glBegin@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x3ea):cohen_sutherland.cpp: undefined reference to `_glVertex2f@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x41f):cohen_sutherland.cpp: undefined reference to `_glVertex2f@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x427):cohen_sutherland.cpp: undefined reference to `_glEnd@0'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0x46d):cohen_sutherland.cpp: undefined reference to `_glFlush@0'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xbee):cohen_sutherland.cpp: undefined reference to `_glColor3f@12'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xc0f):cohen_sutherland.cpp: undefined reference to `_glColor3f@12'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xc1e):cohen_sutherland.cpp: undefined reference to `_glBegin@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xc53):cohen_sutherland.cpp: undefined reference to `_glVertex2f@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xc88):cohen_sutherland.cpp: undefined reference to `_glVertex2f@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xc90):cohen_sutherland.cpp: undefined reference to `_glEnd@0'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xc9f):cohen_sutherland.cpp: undefined reference to `_glFlush@0'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xd94):cohen_sutherland.cpp: undefined reference to `_glutInit@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xda3):cohen_sutherland.cpp: undefined reference to `_glutInitDisplayMode@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xdbc):cohen_sutherland.cpp: undefined reference to `_glutInitWindowSize@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xdd3):cohen_sutherland.cpp: undefined reference to `_glutInitWindowPosition@8'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xde2):cohen_sutherland.cpp: undefined reference to `_glutCreateWindow@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xe41):cohen_sutherland.cpp: undefined reference to `_glutDisplayFunc@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xe50):cohen_sutherland.cpp: undefined reference to `_glutMouseFunc@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xe5f):cohen_sutherland.cpp: undefined reference to `_glutKeyboardFunc@4'
/cygdrive/c/DOKUME~1/JENS~1.ATH/LOKALE~1/Temp/ccXI5USw.o(.text+0xe6c):cohen_sutherland.cpp: undefined reference to `_glutMainLoop@0'
collect2: ld returned 1 exit status
</HTML>