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

Thread: Errors while Compiling in BC 5

  1. #1
    Guest

    Errors while Compiling in BC 5

    I am on a machine w/ Borland c++ 5.1 and I got opengl.dll and glut. I can't compile any files from the "redbook" because it gives me a declaration error in glut.h whenever it see something like:

    WINGDIAPI void APIENTRY Funtion (Parameters);

    any ideas?

    -Thanks in advance
    ngill@imsa.edu

  2. #2
    Junior Member Regular Contributor
    Join Date
    Mar 2000
    Location
    Aurora, Illinois, USA
    Posts
    192

    Re: Errors while Compiling in BC 5

    Sorry the error is in gl.h... but it's still the same error
    Navreet Gill [img]/forum/images/%%GRAEMLIN_URL%%/smile.gif[/img]

  3. #3
    Intern Contributor
    Join Date
    Feb 2000
    Location
    Germany
    Posts
    87

    Re: Errors while Compiling in BC 5

    Maybe you just forgot to include <windows.h>
    right before <gl\gl.h>.

  4. #4
    Junior Member Regular Contributor
    Join Date
    Mar 2000
    Location
    Aurora, Illinois, USA
    Posts
    192

    Re: Errors while Compiling in BC 5

    thanks that worked! but can anyone tell me where i can find the source for the prototypes in gl.h?? can someone help me set this up?? I've gotten most of it done... this is the only error I have left:

    Unresolved Extern for (every function in gl..h) in light.obj

    -Thanks
    Navreet Gill [img]/forum/images/%%GRAEMLIN_URL%%/smile.gif[/img]

  5. #5
    Junior Member Regular Contributor
    Join Date
    Mar 2000
    Location
    Aurora, Illinois, USA
    Posts
    192

    Re: Errors while Compiling in BC 5

    Ok, screw this... more I try to fix it the more errors i get...

    Does anyone else out there use Borland 5.02 compiler??? or know how to get it working with Opengl programming and stuff?? Your help would be GREATLY appreciated... Just tell me step by step which files should be where and where I could obtain those files from.

    -Thanks
    Navreet
    Navreet Gill [img]/forum/images/%%GRAEMLIN_URL%%/smile.gif[/img]

  6. #6
    Guest

    Re: Errors while Compiling in BC 5

    dude, it's ok... you probably just forgot to link gl libraries man..

  7. #7
    Junior Member Newbie
    Join Date
    Jan 2001
    Posts
    1

    Re: Errors while Compiling in BC 5

    I use Borland 5, and everything will work up to the point where it links to the exe(this is when I compile any glut progam). I get some strange error that tells me it either can't link to glut32.dll or that "Extern _'exit' is not qualified with _import." can anyone help?

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

    Re: Errors while Compiling in BC 5

    If you including glut.h, you don't really need to include gl.h because glut does it for you, AND it defines the structures that gl.h uses so you don't need windows.h. It also has some pragma statments that will load the proper libraries for you, but these statements might just work with VC++. I don't use Borland much, but I have the free compiler installed at home that I can use to check on some things for you. You probably just are having problems with the libraries linking in. Borland also uses a different library format from MS so the VC++ libraries WILL NOT work with Borland. I could swear that the Borland compiler I got came with it's own OpenGL libraries, but I could be wrong about that.
    Deiussum
    Software Engineer and OpenGL enthusiast

Posting Permissions

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