Jump to content
  • Advertisement
Sign in to follow this  
S-Rave

glu.h compiling problems

This topic is 3946 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

Every time I try to compile a program which includes glu.h I get these strange errors (or maybe it's not that strange at all): **** Rebuild of configuration Debug for project SFML Clockemp **** **** Internal Builder is used for build **** g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\main.o ..\src\main.cpp In file included from ..\src\main.cpp:4: G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:225: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:226: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:227: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:228: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:229: error: `GLAPI' does not name a type G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:230: error: `GLAPI' does not name a type G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:231: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:232: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:233: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:234: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:235: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:236: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:237: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:238: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:239: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:240: error: expected constructor, destructor, or type conversion before "const" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:241: error: expected constructor, destructor, or type conversion before "const" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:242: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:243: error: expected constructor, destructor, or type conversion before "const" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:244: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:245: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:246: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:247: error: `GLAPI' does not name a type G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:248: error: `GLAPI' does not name a type G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:249: error: `GLAPI' does not name a type G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:250: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:251: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:252: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:253: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:254: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:255: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:256: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:257: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:258: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:259: error: `GLAPI' does not name a type G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:260: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:261: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:262: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:263: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:264: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:265: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:266: error: `GLAPI' does not name a type G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:267: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:268: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:269: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:270: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:271: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:272: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:273: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:274: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:275: error: expected constructor, destructor, or type conversion before "void" G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:276: error: `GLAPI' does not name a type G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/gl/glu.h:277: error: `GLAPI' does not name a type ..\src\main.cpp: In function `int main()': ..\src\main.cpp:20: error: `gluBuild2DMipmaps' was not declared in this scope ..\src\main.cpp:20: warning: unused variable 'gluBuild2DMipmaps' ..\src\main.cpp:56: error: `gluPerspective' was not declared in this scope ..\src\main.cpp:56: warning: unused variable 'gluPerspective' Build error occurred, build is stopped Time consumed: 703 ms. Using eclipse, and got same error when using dev-c++. Any ideas?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!