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

Thread: LCC lib problem...

Hybrid View

  1. #1
    Intern Contributor
    Join Date
    Apr 2004
    Posts
    57

    LCC lib problem...

    I am using LCC win 32 for a project I am dong and ran into this problem:

    When I tried to compile my program it told me it was missing some libs' for some of the functions that I was using. One one them that it told me was missing was:

    (function) | (Lib that it is in)

    glutcreatewindow | glu32.lib

    I thought nothing about that it said that the gut funtion was in the glu32 lib file. so then my program compiled and I ggot the dll's that it was looking for and then on execution it told me:

    ERROR: Function GlutCreateWindow was not found in GLU32.DLL!

    So I am confused, why is it telling me that the glut function is in the glu DLL? Is there a way to fix it? Is it acually the thing about it saying the the glut finc was in the glu lib, or does that have nothin to do with it?

    If you can help me I would appreciate it emmensly! Thanks ~Me6
    "A Programmer is the same thing as a Psycho, except for one difference----A programmer gets paid to do what he does."*--Brian Jennings

  2. #2
    Guest

    Re: LCC lib problem...

    glutcreatewindow() is part of GLUT not GLU, so you need to link to the glut library as well.

  3. #3
    Intern Contributor
    Join Date
    Apr 2004
    Posts
    57

    Re: LCC lib problem...

    I might not have made myself clear in my last post, I know that the Glutcreatewindow does not belong to the glu lib. I think that LCC thinks that it does though, so I think that it is trying to link it to the glu lib. In my lib I have the OpenGL GLut and GLu libs. BUt it seems to tell it to look for that function in the lib.
    "A Programmer is the same thing as a Psycho, except for one difference----A programmer gets paid to do what he does."*--Brian Jennings

  4. #4
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: LCC lib problem...

    I do use lcc and it works with glut. Maybe try to put glut32.lib before (or after) glu32.lib on the 'Additionnal files to be included for the link'.

  5. #5
    Intern Contributor
    Join Date
    Apr 2004
    Posts
    57

    Re: LCC lib problem...

    ok, will do.
    thanks
    "A Programmer is the same thing as a Psycho, except for one difference----A programmer gets paid to do what he does."*--Brian Jennings

Posting Permissions

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