That's the code I'm using alright. I think it can find the headers alright as the two errors I'm getting specifically mention the necessary library, .e. \include\gl\glut.h:
C:\Program Files\PellesC\Include\gl\glut.h(19): error #1050: Macro redefinition of 'APIENTRY'.
C:\Program Files\PellesC\Include\gl\glut.h(20): error #1050: Macro redefinition of 'CALLBACK'.
So, I'm not sure there's much I can do with my knowledge! I'll try turning on some more of the tick boxes in the project options.
Exactly what type of project did you paste the code into? I don't know what the difference is!
Cheers for your help John.