Same problem. I have downloaded the OpenGL devpacks through the tools->check for updates/packages
I still get whacked errors like this:

A3.o(.text+0xc0e): In function `Z4idlev': C:/.../A3.c:280: undefined reference to `glutGet'

A3.o(.text+0xdb0): C:/.../A3.c:314: undefined reference to `glutPostRedisplay'

A3.o(.text+0x1002): In function `Z7displayv': C:/.../A3.c:368: undefined reference to `glutSwapBuffers'

I have been trying to figure this out for weeks...
I originally wrote the code in linux, actually, but that shouldnt matter with c++, and i have gotten regular glu programs to work, just not glut or glui ones