Jump to content
  • Advertisement
Sign in to follow this  

OpenGL MinGW with OpenGL

This topic is 3774 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 an OpenGL program using MinGW, but I'm not having much luck. The following is my output: C:\progs>g++ torus.cpp -lopengl32 -lglu32 -lglut32 -o torus.exe torus.cpp:13:1: warning: "M_PI" redefined In file included from torus.cpp:11: C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/math.h:58:1: warning: this is the location of the previous definition C:\DOCUME~1\AARONC~1.PA0\LOCALS~1\Temp/ccCedaaa.o:torus.cpp:(.text+0x1c): undefined reference to `__glutInitWithExit@12' C:\DOCUME~1\AARONC~1.PA0\LOCALS~1\Temp/ccCedaaa.o:torus.cpp:(.text+0x3d): undefined reference to `__glutCreateWindowWithExit@8' C:\DOCUME~1\AARONC~1.PA0\LOCALS~1\Temp/ccCedaaa.o:torus.cpp:(.text+0x5d): undefined reference to `__glutCreateMenuWithExit@8' collect2: ld returned 1 exit status C:\progs> I have the the following header files in c:\MinGW\include\GL gl.h gluax.h glext.h glu.h glui.h glut.h Any ideas one what to do? Thanks.

Share this post

Link to post
Share on other sites
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!