From: Wu Y. <ad...@ne...> - 2002-08-21 03:30:40
|
Because the OpenGL library uses the stdcall convention. For more information about stdcall and your current circumstance, have a look at http://www.geocities.com/yongweiwu/stdcall.htm or http://mywebpage.netscape.com/yongweiwu/stdcall.htm The "-h" option of pexports might help. Have a try. Best regards, Wu Yongwei --- Original Message from Eric Kort --- Ok, thanks to Magnus Bondesson (below), I got the latest dll, and for good measure I created my own library (.a) file using impdef and dlltool. I did the same for glu32.dll and opengl32.dll. This eliminated all the former errors, but now I have a shorter list of new ones: M:\>gcc -o gl.exe gl.o -mwindows -lglut32 -lglu32 -lopengl32 gl.o(.text+0x16a):gl.c: undefined reference to `glutSwapBuffers@0' gl.o(.text+0x264):gl.c: undefined reference to `glutPostRedisplay@0' gl.o(.text+0x325):gl.c: undefined reference to `gluPerspective@32' gl.o(.text+0x32a):gl.c: undefined reference to `glutPostRedisplay@0' gl.o(.text+0x4d5):gl.c: undefined reference to `glutInitDisplayMode@4' gl.o(.text+0x4ec):gl.c: undefined reference to `glutInitWindowSize@8' gl.o(.text+0x4fc):gl.c: undefined reference to `glutCreateWindow@4' gl.o(.text+0x50c):gl.c: undefined reference to `glutDisplayFunc@4' gl.o(.text+0x51c):gl.c: undefined reference to `glutReshapeFunc@4' gl.o(.text+0x52c):gl.c: undefined reference to `glutIdleFunc@4' gl.o(.text+0x53c):gl.c: undefined reference to `glutKeyboardFunc@4' gl.o(.text+0x549):gl.c: undefined reference to `glutMainLoop@0' I don't understand where the @ suffixes have come from? They are not in the def or header files. Can anyone help? -Eric |