From: Raffaele S. <ra...@gm...> - 2001-12-11 17:09:04
|
Hi, I can't link any opneGL code. I made a GLUT test: ********************* #include <gl/glut.h> int main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_DEPTH | GLUT_SINGLE | GLUT_RGBA); glutInitWindowPosition(100,100); glutInitWindowSize(320,320); glutCreateWindow("RASA GLUT TEST"); } ********************* I tried to compile it with the command: gcc -o gluttest -lglut32 -lglu32 -lopengl32 gluttest.c And i get that output: C:\WINDOWS\TEMP\ccbd7bXa.o(.text+0x17):glut.c: undefined reference to `__glutInitWithExit@12' C:\WINDOWS\TEMP\ccbd7bXa.o(.text+0x37):glut.c: undefined reference to `__glutCreateWindowWithExit@8' C:\WINDOWS\TEMP\ccbd7bXa.o(.text+0x5b):glut.c: undefined reference to `__glutCreateMenuWithExit@8' C:\WINDOWS\TEMP\ccbd7bXa.o(.text+0xa0):glut.c: undefined reference to `glutInitDisplayMode@4' C:\WINDOWS\TEMP\ccbd7bXa.o(.text+0xaf):glut.c: undefined reference to `glutInitWindowPosition@8' C:\WINDOWS\TEMP\ccbd7bXa.o(.text+0xc4):glut.c: undefined reference to `glutInitWindowSize@8' I get ONLY that output... no error about missing libraries or stuff like that? Anyone an idea what my elemtary fault is? cheers, Raffaele |