Results 1 to 6 of 6

Thread: How to use OpenGL with Borland C++ 5.0

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2002
    Location
    U.A.E.
    Posts
    2

    How to use OpenGL with Borland C++ 5.0

    Can anyone help me in writing OpenGL codes with Borland C++ (5.0)? I tried to compile a prewritten code (from some book on OpenGL) and I got Linker errors.
    Am I missing out something?
    -AlfaOne

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,068

    Re: How to use OpenGL with Borland C++ 5.0

    I am guessing you do not have the OpenGL library's listed in the linker.

    add's these library's to the linker library list.

    opengl32.lib glu32.lib glut32.lib

    and if you are using any glaux stuff then the glaux.lib.

    I do not know if the Opengl lib's come with Borland, so you may want to check the lib directory for these. If you don't have them then you will need to download them.


    Originally posted by AlfaOne:
    Can anyone help me in writing OpenGL codes with Borland C++ (5.0)? I tried to compile a prewritten code (from some book on OpenGL) and I got Linker errors.
    Am I missing out something?
    -AlfaOne


    [This message has been edited by nexusone (edited 02-07-2002).]

  3. #3
    Senior Member Regular Contributor
    Join Date
    Jan 2002
    Posts
    292

    Re: How to use OpenGL with Borland C++ 5.0

    Yes, the opengl lib comes with borland...

    The question would then be ::::
    Are you using GLUT?

    In the programs you are trying to compile, do you have a header file called glut.h
    e.g.
    #include "gl/glut.h"

    If you do then you have to download the glut archive for borland, or you can simply download the VC version and create a .lib to use with borland....

  4. #4
    Senior Member Regular Contributor
    Join Date
    May 2001
    Location
    Omaha, NE US
    Posts
    119

    Re: How to use OpenGL with Borland C++ 5.0

    Can you tell us what the linker errors say? This will help us greatly.

    Oh sweet...I'm now a Frequent Contributor


    [This message has been edited by rpxmaster (edited 02-07-2002).]

  5. #5
    Junior Member Newbie
    Join Date
    Feb 2002
    Location
    U.A.E.
    Posts
    2

    Re: How to use OpenGL with Borland C++ 5.0

    Error: Error: Unable to open file 'GLUT32.LIB'
    Error: Error: Unable to open file 'GLU32.LIB'
    Error: Error: Unable to open file 'OPENGL32.LIB'
    Error: Error: Unable to open file 'WINMM.LIB'
    Originally posted by rpxmaster:
    Can you tell us what the linker errors say? This will help us greatly.

    Oh sweet...I'm now a Frequent Contributor


    [This message has been edited by rpxmaster (edited 02-07-2002).]

  6. #6
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: How to use OpenGL with Borland C++ 5.0

    Either you don't have those library files, or you have them in a place where the linker can't find them.

Similar Threads

  1. borland c++ 5.02 and opengl
    By axel.82 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-13-2004, 03:07 PM
  2. How to use OpenGL with Borland C++ 5?
    By MarkS in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 01-11-2004, 07:10 AM
  3. OpenGL and Borland C++ 4.52
    By JDCentral in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 01-10-2002, 03:05 PM
  4. how to set opengl in borland c++ 5.0
    By abhiboy007 in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 06-21-2001, 10:57 AM
  5. Borland C++ 5.02 and OpenGL
    By citizen.x in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-30-2001, 10:33 AM

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