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 3 of 3

Thread: Problems running GLUT src examples in DEVcpp/mingw

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2002
    Posts
    2

    Problems running GLUT src examples in DEVcpp/mingw

    I just installed devcpp for the first time and it looks great. I algo installed the newest version of OpenGL (2.0) and the newest stable version of GLUT (4.0)

    when i compile the GLUT examples, i get a bunch of stuff like this
    ---------------------------------------------
    \windows\TEMP\ccF87wfb.o(.text+0x17):shape_~1.c: undefined reference to `__glutInitWithExit'
    c:\windows\TEMP\ccF87wfb.o(.text+0x33):shape_~1.c: undefined reference to `__glutCreateWindowWithExit'
    c:\windows\TEMP\ccF87wfb.o(.text+0x57):shape_~1.c: undefined reference to `__glutCreateMenuWithExit'
    c:\windows\TEMP\ccF87wfb.o(.text+0x122):shape_~1.c : undefined reference to `_imp__glPushMatrix'
    c:\windows\TEMP\ccF87wfb.o(.text+0x151):shape_~1.c : undefined reference to `_imp__glScalef'
    c:\windows\TEMP\ccF87wfb.o(.text+0x166):shape_~1.c : undefined reference to `glutWireSphere'
    c:\windows\TEMP\ccF87wfb.o(.text+0x16f):shape_~1.c : undefined reference to `_imp__glPopMatrix'
    c:\windows\TEMP\ccF87wfb.o(.text+0x182):shape_~1.c : undefined reference to `_imp__glPushMatrix'
    ---------------------------------------------

    I am a newbie, but i think that is a good indication that I am not installing somthing right...
    -= Twisted Matrix =-

  2. #2
    Junior Member Newbie
    Join Date
    Oct 2002
    Posts
    2

    Re: Problems running GLUT src examples in DEVcpp/mingw

    oh yeah, and the project options menu dosent seem to open when I open one of these GLUT example projects. I am assuming the nessicary libs are already defined in the project file ???
    -= Twisted Matrix =-

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2002
    Location
    SC, USA
    Posts
    9

    Re: Problems running GLUT src examples in DEVcpp/mingw

    Hi,

    I have had similar problems. Here are my notes and fix using Dev-C++ compiler.

    Ensure glut32.dll is in same folder and
    at this above include files
    #define GLUT_DISABLE_ATEXIT_HACK

    undefined reference to `__glutInitWithExit@12'
    undefined reference to `__glutCreateWindowWithExit@8'
    undefined reference to `__glutCreateMenuWithExit@8'


    Regards,
    ChuckB

Posting Permissions

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