Glut errors with Mingw on windows
-
i need to set up glut on my windows machine. i have glut.h in the include\GL folder , libglut32.a in the lib folder and glut32.dll in the windows\system folder i compile as follows: g++ -Wall main.cpp -mwindows libglut32.a -lopengl32 -lglu32 i also have the windows.h , gl/glut.h and gl/gl.h included. and actually my compiler is tdm-gcc (mingw64) it gives me lots of errors like: undefined reference to _glutmainloop... how do i solve this?
-
i need to set up glut on my windows machine. i have glut.h in the include\GL folder , libglut32.a in the lib folder and glut32.dll in the windows\system folder i compile as follows: g++ -Wall main.cpp -mwindows libglut32.a -lopengl32 -lglu32 i also have the windows.h , gl/glut.h and gl/gl.h included. and actually my compiler is tdm-gcc (mingw64) it gives me lots of errors like: undefined reference to _glutmainloop... how do i solve this?
lol i solved this.... i think glut was too old for my compiler ... so i downloaded freeGLUT and it worked :)
-
lol i solved this.... i think glut was too old for my compiler ... so i downloaded freeGLUT and it worked :)
GLUT is deprecated on Visual Studio it no longer exists as a standard unit and is recommended not to use, which is what all the errors were about and why you needed to download freeGLUT.
In vino veritas
-
GLUT is deprecated on Visual Studio it no longer exists as a standard unit and is recommended not to use, which is what all the errors were about and why you needed to download freeGLUT.
In vino veritas
yea.. same is the case with codeblocks and bloodshed dev-cpp