Results 1 to 6 of 6

Thread: trouble running program ...please help.

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Location
    Calcutta,West Bengal,India
    Posts
    13

    trouble running program ...please help.

    Hello,

    I using this basic program in Opengl


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

    void init(void);
    void display(void);

    int main(int argc, char** argv)
    {
    glutInit (&argc, argv) ;
    glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB) ;
    glutInitWindowSize (400, 100) ;
    glutInitWindowPosition (100, 100) ;
    glutCreateWindow ("First Chapter - Opening an OpenGL Window") ;

    init() ;
    glutDisplayFunc (display) ;
    glutMainLoop () ;
    return 0 ;
    }

    void init(void)
    {
    glClearColor(1.0, 1.0, 1.0, 0.0) ;
    glShadeModel(GL_FLAT) ;
    }

    void display(void)
    {
    glClear(GL_COLOR_BUFFER_BIT) ;
    glutSwapBuffers() ;
    }


    1. In VC++ I have changed the settings to add appropriate libs
    winmm.lib,opengl32.lib, glu32.lib, glaux.lib ,glut32.lib...but
    when I try to run I get error as

    "Cant open include file gl\glut.h" what is the problem?

    2. This same program when I try to run in Dev-c++ and enter
    proper libs too it compiles successfully but gives out
    error as "The TEST_001.EXE file is linked to missing export
    GLUT32.DLL:_glutCreateMenuWithExit.

    what can i do run the program and future programs?

    thanks in advance,
    anindya

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

    Re: trouble running program ...please help.

    You need to add the files glu32.dll and glut32.dll to your system32 directory.

    //Belgy

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2002
    Location
    Calcutta,West Bengal,India
    Posts
    13

    Re: trouble running program ...please help.

    Hello,

    I just did what you said me to do.
    But the problem remains the same.None of
    the compilers is giving any better result.
    the erorrs they are producing are same as
    above!.what can I do abt it?

    thanks in advance,
    anindya

  4. #4
    Member Contributor
    Join Date
    Nov 2002
    Location
    Oirsbeek,Holland
    Posts
    69

    Re: trouble running program ...please help.

    I don't use Visual C++, but I would try anyway to write as far as possible exact direction where is glut32.dll or the file you wrote.

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: trouble running program ...please help.

    VC++ doesn't come with glut. Do a search on these forums and you will find many, many posts about how to download and install it.
    Deiussum
    Software Engineer and OpenGL enthusiast

  6. #6
    Junior Member Newbie
    Join Date
    Nov 2002
    Location
    Calcutta,West Bengal,India
    Posts
    13

    Re: trouble running program ...please help.

    its solved.....i downloaded all those stuffs
    4-5 times..but in the ends it was VC that
    messed thing up!

Similar Threads

  1. Problem running this program
    By joker40 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 11-11-2010, 03:55 PM
  2. Trouble running OpenGL ES2 SDK tutorials
    By NathanRWilliams in forum OpenGL ES
    Replies: 1
    Last Post: 05-05-2010, 12:34 AM
  3. Running the program more than once
    By jjcheng in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-26-2005, 12:14 PM
  4. trouble running a program
    By in forum OpenGL: User Software
    Replies: 0
    Last Post: 12-31-2002, 03:32 PM
  5. Having Trouble Running Wolfenstien
    By in forum OpenGL: User Software
    Replies: 0
    Last Post: 01-16-2002, 07:15 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