#14 Freeglut 2.00 + Mingw

open
nobody
None
5
2003-10-02
2003-10-02
Anonymous
No

I downloaded the source and compiled it in Visual
C /both dynamic and static/. After this I tried to compile
the Fractal example. In Visual C it was successful, but
with Mingw I got errors:
undefined reference to '_imp__glutSwapBuffers@0'
undefined reference to '_imp__glutReshapeWindow@8'
undefined reference to '_imp__glutFullScreen@0'
.
.
.
How can I fix this?

Discussion

  • Nigel Stewart

    Nigel Stewart - 2003-10-02

    Logged In: YES
    user_id=338692

    You may need to hack the Makefiles to link
    -lglut32 instead of the Unix conventional
    -lGLUT

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry, that I opened this here and not in the Bugs section.

    I linked -lfreeglut, but it is no use. I tried to link -lglut and -
    lglut32 and i was able to compile the Fractal program /and my
    own program too/, because MinGW has 2 old glut libs for
    this /libglut.a, libglut32.a/. If I remove these libs I can't
    compile the programs. So I have a full
    functioning "freeglut.lib"+"freeglut.dll" /I tested them with
    Visual C, I compiled the Fractal program with them/. But I
    can't link freeglut in MinGW. I tried the new Freeglut 2.0.1 RC
    1, but the same problem. Can somebody help me?

     
  • Király Attila

    Király Attila - 2003-10-16

    Logged In: YES
    user_id=888119

    Now I made it. Removed the 2 libs from MinGW
    Distrib. /"libglut.a", "libglut32.a"/, renamed the "freeglut.lib"
    to "glut32.lib" and using -lglut32 insted of -lfreeglut. Now
    everything is fine.

    Oh and I registreted me. I was, who posted here the
    Anonymous comments.

     
  • Nigel Stewart

    Nigel Stewart - 2004-07-28

    Logged In: YES
    user_id=338692

    Try statically linking FreeGLUT on Mingw32.

     
  • Nobody/Anonymous

    Logged In: NO

    Did you define FREEGLUT_STATIC?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks