Menu

glut.h for Dev-C++?

2005-06-11
2012-09-26
  • Nobody/Anonymous

    What do I need to set up to compile a glut program in Dev-C++?

    In the Dev-C++ distribution, I find lib/libopengl32.a, lib/libglut.a, and lib/libglut32.a.

    There is also an include/gl directory which contains OpenGL include files but not glut.h.

    I'm trying to compile a linux/unix OpenGL program, and I'm using a glut.h file that I downloaded from somewhere else. All the glut commands come up as linker errors "undefined reference".

    The result is the same whether or not I include "-lglut32" under Project > Project Options > Parameters > Linker.

    My best guess is that the .h file has declarations that don't match the compiled library file.

    Can anyone tell me where to get a glut.h file that will work with Dev-C++'s glut libraries?

    Or is there something else I need to do?

    Thanks!

     
    • Nobody/Anonymous

      Ok, now that I've posted this I see that there are OpenGL answers in the read-me-first posting.

      Thanks. This looks good!

       
      • Joe Dirt

        Joe Dirt - 2008-02-11

        This is a rhetorical question so no one needs to answer. Why is glut.h not included with Dev-C++? If the library it refrences is included (libglut32.a)?

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.