Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: Using GLUT with a free compiler under Windows

  1. #1
    Guest

    Using GLUT with a free compiler under Windows

    Anyone managing to use GLUT with a free compiler under Windows?

    I'm getting the following sort of errors no matter the compiler :

    d:\myopengl\hello\main.o(.text+0x17):main.c: undefined reference to `__glutInitWithExit'
    d:\myopengl\hello\main.o(.text+0x33):main.c: undefined reference to `__glutCreateWindowWithExit'
    d:\myopengl\hello\main.o(.text+0x57):main.c: undefined reference to `__glutCreateMenuWithExit'
    d:\myopengl\hello\main.o(.text+0x81):main.c: undefined reference to `_imp__glClear'
    I'm using the latest bin version of GLUT (3.7.6 - http://www.xmission.com/~nate/glut.html).

    I can compile standard OpenGL programs without problems from the Dev-C++ 4 IDE (Cygwin compiler) but get the error above with a GLUT/OpenGL program I know to be working.

    Any help welcome as I really want to get coding

    Thanks a lot.

    Tsyrak

  2. #2
    Member Regular Contributor
    Join Date
    Jan 2002
    Posts
    296

    Re: Using GLUT with a free compiler under Windows

    It seems like you are not linking your glut32.lib

    I have not personally tested it, but I doubt that the glut32.lib you get from the xmission page will work with your compiler since it is made for VisualStudio.
    You would have to find out how to make the glut32.lib with your compiler so that you can then link it...

  3. #3
    Guest

    Re: Using GLUT with a free compiler under Windows

    Yes, I've put my hands on version 3.6 of GLUT for Windows meantime, thanks...

    I still have the same sort of errors though. How do I get about telling the compiler to link to glut?

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,096

    Re: Using GLUT with a free compiler under Windows

    I have had no problems using lcc-win32 with glut.
    It is a nice free C/C++ compiler.

    Originally posted by Tsyrak:
    Anyone managing to use GLUT with a free compiler under Windows?

    I'm getting the following sort of errors no matter the compiler :

    I'm using the latest bin version of GLUT (3.7.6 - http://www.xmission.com/~nate/glut.html).

    I can compile standard OpenGL programs without problems from the Dev-C++ 4 IDE (Cygwin compiler) but get the error above with a GLUT/OpenGL program I know to be working.

    Any help welcome as I really want to get coding

    Thanks a lot.

    Tsyrak

  5. #5
    Junior Member Regular Contributor
    Join Date
    Feb 2002
    Posts
    247

    Re: Using GLUT with a free compiler under Windows

    lcc-win32 is C++ now? I thought it was only C.

  6. #6

    Re: Using GLUT with a free compiler under Windows

    It is C but has some C++ extensions like iostream library, operator overloading and references (&).

  7. #7
    Guest

    Re: Using GLUT with a free compiler under Windows

    Found the fix to my problem - now using Dev-C++, GLUT libs for it here : http://www.cs.uofs.edu/~mpc3/cmps370/glutsetup.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •