Sign in to follow this  

Help GLUT: syntax error before '*' token

This topic is 4354 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to compile glut 3.7.6 (dowbloaded from official site)using devc++. So I've imported the glut32.dsp into devc++, included manually some headers, and start to compile. It return a very strange error: gcc.exe -c glut_bitmap.c -o glut_bitmap.o -I"C:/Dev-Cpp/include" -I"../../include" -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS -D_USRDLL -DGLUT32_EXPORTS -UGLUT_USE_SGI_OPENGL In file included from glut_bitmap.c:8: lutint.h:280: error: syntax error before '*' token glutint.h:281: error: syntax error before '*' token glutint.h:282: error: syntax error before '*' token glutint.h:283: error: syntax error before '*' token glutint.h:284: error: syntax error before '*' token glutint.h:285: error: syntax error before '*' token glutint.h:286: error: syntax error before '*' token glutint.h:287: error: syntax error before '*' token glutint.h:288: error: syntax error before '*' token glutint.h:289: error: syntax error before '*' token glutint.h:290: error: syntax error before '*' token glutint.h:291: error: syntax error before '*' token glutint.h:292: error: syntax error before '*' token glutint.h:293: error: syntax error before '*' token glutint.h:294: error: syntax error before '*' token glutint.h:295: error: syntax error before '*' token glutint.h:296: error: syntax error before '*' token glutint.h:297: error: syntax error before '*' token glutint.h:298: error: syntax error before '*' token glutint.h:299: error: syntax error before '*' token glutint.h:300: error: syntax error before '*' token glutint.h:301: error: syntax error before '*' token glutint.h:302: error: syntax error before '*' token glutint.h:384: error: syntax error before "GLUTdisplayCB" glutint.h:384: warning: no semicolon at end of struct or union glutint.h:385: warning: data definition has no type or storage class glutint.h:386: error: syntax error before "mouse" glutint.h:386: warning: data definition has no type or storage class glutint.h:387: error: syntax error before "motion" etc etc... Using google, I've found a similar case, but it's not english and I don't understand: http://exp.dk/spm/625931 Please, help me! thx, Zyx

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Check your source and header files for missing semicolons. If you unclude the GLUT headers first in your glut_bitmap.c, you might get closer to the problem.

Share this post


Link to post
Share on other sites

This topic is 4354 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this