Hello, I am trying to build a simple OpenGL program (an example taken from
the famous "Red Book"). However, during the build process the following
error messages are displayed:
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccK0lHn2.o(.text+0xe):test.c:
undefined reference to `glEnableClientState@4'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccK0lHn2.o(.text+0x1d):test.c:
undefined reference to `glEnableClientState@4'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccK0lHn2.o(.text+0x44):test.c:
undefined reference to `glVertexPointer@16'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccK0lHn2.o(.text+0x6b):test.c:
undefined reference to `glColorPointer@16'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccK0lHn2.o(.text+0x92):test.c:
undefined reference to `glInterleavedArrays@12'
Messages like that may be an indication that you are using the wrong header
files or the wrong librairies. You should use the headers from
/usr/include/GL. They should have lines near the top that say: