Results 1 to 5 of 5

Thread: I NEED MENTAL HELP!!! I need to set up GLUT but i can't figure out how dammit

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2000
    Location
    Hanmer
    Posts
    25

    I NEED MENTAL HELP!!! I need to set up GLUT but i can't figure out how dammit

    i recently bought the "OpenGL Superbible" book and it gives a short program. It says to install certain dll files of glut in various directories. I did exacly what it said but when i try to compile it give me these errors:

    Microsoft(R) Windows 98
    (C)Copyright Microsoft Corp 1981-1998.

    C:\WINDOWS\Desktop>cd\

    C:\>cd borland\bcc55\bin

    C:\Borland\bcc55\Bin>bcc32 c:\test.cpp
    Borland C++ 5.5 for Win32 Copyright (c) 1993, 2000 Borland
    c:\test.cpp:
    Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
    Error: Unresolved external 'glutInitDisplayMode' referenced from C:\BORLAND\BCC5
    5\BIN\TEST.OBJ
    Error: Unresolved external 'glutCreateWindow' referenced from C:\BORLAND\BCC55\B
    IN\TEST.OBJ
    Error: Unresolved external 'glutDisplayFunc' referenced from C:\BORLAND\BCC55\BI
    N\TEST.OBJ
    Error: Unresolved external 'glutMainLoop' referenced from C:\BORLAND\BCC55\BIN\T
    EST.OBJ

    C:\Borland\bcc55\Bin>


    ===================
    Now here's my c++ code:

    #include <windows.h>
    #include <gl\glut.h>

    void RenderScene(void)
    {
    glClear(GL_COLOR_BUFFER_BIT);

    glFlush();
    }
    void SetupRC(void)
    {
    glClearColor(0.0f, 0.0f, 1.0f, 1.0f);
    }
    void main(void)
    {
    glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
    glutCreateWindow("Simple");
    glutDisplayFunc(RenderScene);

    SetupRC();

    glutMainLoop();
    }
    ================================
    PPPPLLLLLLZZZZZ help me!!!!

  2. #2
    Junior Member Newbie
    Join Date
    Jun 2000
    Location
    Canada
    Posts
    3

    Re: I NEED MENTAL HELP!!! I need to set up GLUT but i can't figure out how dammit

    You are getting these errors, because all you calls to glut are unkown. You have to add a static run time library so your program knows where these functions are.
    In MSC++ you can add these in the settings box, but I'm not sure if how Borland C does this.
    Try reading help files on how the add static library files to your program. This will elimate your errors.

  3. #3
    Guest

    Re: I NEED MENTAL HELP!!! I need to set up GLUT but i can't figure out how dammit

    I have the same problem and I'm also using Borland C++ Builder. Can you please give us the name of this static runtime library under Microsoft's C++ Builder??? I added some libraries to my project, but it still doesn't work.

    THX...

  4. #4
    Junior Member Newbie
    Join Date
    Jun 2000
    Location
    Romania
    Posts
    3

    Re: I NEED MENTAL HELP!!! I need to set up GLUT but i can't figure out how dammit

    The name of library is glut32.lib,Glut32.dll must be placed in \windows\system
    Another problem is that Borlan C and Visual C
    libs are incompatible (i think),if so you most download glut sources from www.sgi.com\software\opengl and recompile them

  5. #5
    Guest

    Re: I NEED MENTAL HELP!!! I need to set up GLUT but i can't figure out how dammit

    you have to add the directory gl to borlands
    include directory and add the appropriate
    header files in this case glut.h
    that should do it

Similar Threads

  1. Who can help me figure this our? thx
    By koalacui in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-04-2005, 07:56 PM
  2. using more than one figure
    By Ziggurat in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-27-2002, 12:35 AM
  3. stick man figure
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-23-2001, 08:38 AM
  4. I NEED MENTAL HELP!!!....2 Quick newbie questions...
    By Y-T in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-15-2000, 05:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean