Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Glut errors with Mingw on windows

Glut errors with Mingw on windows

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ratul Thakur
    wrote on last edited by
    #1

    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?

    R 1 Reply Last reply
    0
    • R Ratul Thakur

      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?

      R Offline
      R Offline
      Ratul Thakur
      wrote on last edited by
      #2

      lol i solved this.... i think glut was too old for my compiler ... so i downloaded freeGLUT and it worked :)

      L 1 Reply Last reply
      0
      • R Ratul Thakur

        lol i solved this.... i think glut was too old for my compiler ... so i downloaded freeGLUT and it worked :)

        L Offline
        L Offline
        leon de boer
        wrote on last edited by
        #3

        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

        R 1 Reply Last reply
        0
        • L leon de boer

          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

          R Offline
          R Offline
          Ratul Thakur
          wrote on last edited by
          #4

          yea.. same is the case with codeblocks and bloodshed dev-cpp

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups