GLUT and macro redefinition errors
Hello, I hope this post is in the right section. I've just been trying to get GLUT working with Pelles C using the example code at http://www.trajectorylabs.com/gettin...engl_glut.html
This is my second attempt at getting GLUT to work after being totally baffled the first time a while back, and not managing to solve the problem by inquiring on the Pelles C forum, which to compound the problem I can't even access at the moment for some reason!
Upon compiling I get just the following two errors:
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'.
*** Error code: 1 ***
As far as I can see, I have put all the right files in the right places and ticked the right boxes in the project options (e.g. allow microsoft extensions), and after searching the web for F.A.Q.s I can't find the above errors being addressed. I should stress that although being able to program some C I'm no expert at all this stuff so I could still be doing something stupid I guess.
Any thoughts? Thanks very much.