Hi I'm trying to compile a program my friend has written in linux. I'm using a laptop with windows 2000 and cygwin. I've figured out that the openGL libraries have different names in windows but now I'm stuck.
I'm using gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125) This is what I get: $g++ -I../../src/include -I../../src/tcl_lite/include -I../../src -ansi -pipe -Wall -O2 -o ../firstTestWindow firstTestWindow.o -L../../lib -lUserInterface -lTheatre -lColour -lLighting -lWireframe -lBody -glut32 -lglu32 -lopengl32 firstTestWindow.o:firstTestWindow.cc:(.text+0x75): undefined reference to `_glutInit' firstTestWindow.o:firstTestWindow.cc:(.text+0x104): undefined reference to `_glutMainLoop' ../../lib/libUserInterface.a(Window.o):Window.cc:(.text+0x19): undefined reference to `_glutInitDisplayMode' ../../lib/libUserInterface.a(Window.o):Window.cc:(.text+0x11f7): undefined reference to `_glutGetWindow' ../../lib/libUserInterface.a(Window.o):Window.cc:(.text+0x1346): undefined reference to `_glutGetWindow' ../../lib/libUserInterface.a(Window.o):Window.cc:(.text+0x1364): undefined reference to `_glutSwapBuffers' ../../lib/libUserInterface.a(Window.o):Window.cc:(.text+0x2c17): undefined reference to `_glutInitWindowSize' ../../lib/libUserInterface.a(Window.o):Window.cc:(.text+0x2c48): undefined reference to `_glutInitWindowPosition' ../../lib/libUserInterface.a(Window.o):Window.cc:(.text+0x2c6e): undefined reference to `_glutCreateWindow' ../../lib/libUserInterface.a(Window.o):Window.cc:(.text+0x2c9e): undefined reference to `_glutDisplayFunc' ../../lib/libUserInterface.a(Window.o):Window.cc:(.text+0x2caa): undefined reference to `_glutReshapeFunc' collect2: ld returned 1 exit status make: *** [firstTestWindow] Error 1 My best guess is that the functions have vaguely different names in cygwin than my friends linux distribution, which is mandriva 10.1 I think. /U _______________________________________________ Help-gplusplus mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gplusplus
