I get these errors when I try: gcc test.c -lopengl32 -lglu32:
D:\prog>gcc newgl.c -lopengl32 -lglu32
C:\TEMP\cc0001681.o(.text+0xd9):newgl.c: undefined reference to glutInit@8' C:\TEMP\cc0001681.o(.text+0xe0):newgl.c: undefined reference to
glutInitDisplay
Mode@4’
C:\TEMP\cc0001681.o(.text+0xef):newgl.c: undefined reference to glutInitWindowS ize@8' C:\TEMP\cc0001681.o(.text+0xf9):newgl.c: undefined reference to
glutCreateWindo
w@4’
C:\TEMP\cc0001681.o(.text+0x108):newgl.c: undefined reference to glutDisplayFun c@4' C:\TEMP\cc0001681.o(.text+0x10d):newgl.c: undefined reference to
glutMainLoop@0
’
I’m using gcc on nt. Thanks if anyone knows what I have done wrong here.