Borland C 5 5 Free Command Line Tools Supplementary Information Computer Science Essay

Published: Last Edited:

This essay has been submitted by a student. This is not an example of the work written by our professional essay writers.

To install the Borland C++ 5.5 Free Command-line Tools, simply double-click on the downloaded file and choose all of the default options.  After the compiler installs to your hard disk, it must be configured following the directions in the file README.TXT.  Clarification of the instructions found in that file are included below.

Now, the compiler you downloaded is a command-line compiler application, as distinguished from a Windows application.  In Windows, usually double-clicking on an icon or file is all that is necessary to execute an application.  Then, after the program loads, a graphical interface is presented to the user.

Console applications, on the other hand, accept various parameters and switches that are typed in at the command line or from a batch file.  Though not as common under Windows, many operating systems, such as UNIX or Linux use this format.  Use of Borland C++ 5.5 assumes the user is comfortable working within a console interface. Typically, the user will run an application such as edit or Notepad to actually write their program (an editor is not supplied with the compiler).  When the user wishes to compile source code, they save the file out as "filename.cpp" and then use the command-line tools from within DOS to compile and create an executable.  Like so:

bcc32 filename.cpp

The first argument is name of the compiler tool, and the second argument contains the C++ source file.  This application will attempt to compile the source code and will notify the user of any errors in the code.  If no errors are found it will create an executable. To display information regarding the various switches, type "bcc32"

Step-by-step Instructions for Configuring your System for the Command-Line Compiler


Configuring the system environment:

Open a console box. 

1.  Start | Run... 

2.  Type "command" into the field [Enter]

* If Windows 95/98: 

Navigate to the root in order to modify the PATH reference in the autoexec.bat file. 

3.  Type "cd" [Enter] 

4.  Type "edit autoexec.bat" [Enter] 

5.  Insert a line and type "PATH=C:\BORLAND\BCC55\BIN;%PATH%" 

6.  Save the changes (Alt-F then hit S). 

7.  Exit edit. (Alt+F then press X).

* If Windows NT: 

Add a path reference to the Environment variables: 

3.  Using the mouse, right-click on the "My Computer" icon (on your desktop) and choose "Properties". 

4.  Click on the "Environment" tab. 

5.  Click on "Path" in the "System Variables" field. 

6.  Highlight the "Path" System variable (bottom). 

7.  Click in the "Value" field. 

8.  Append the line with ";C:\BORLAND\BCC55\BIN;" (exactly 1 semi-colon between references) 

9.  Click on the "Set" button. 

10.  Click OK (in the "System Properties" window)

* Or, if Windows 2000/XP:

Add a path reference to the Environment variables: 

3.  Using the mouse, right-click on the "My Computer" icon (on your desktop) and choose "Properties". 

4.  Click on the "Advanced" tab. 

5.  Click on the "Environment Variables..." button. 

6.  Highlight the "Path" System variable (bottom). 

7.  Click on the "Edit..." button. 

8.  Append the line with ";C:\BORLAND\BCC55\BIN;" 

9.  Click OK (in the "Edit System Variables") 

10. Click OK (in the "Environment Variables" window) and click OK (in the "System Properties" window) Navigating to the directory, "c:\Borland\bcc55\bin" 

11. cd borland [Enter] 

12. cd bcc55 [Enter] 

13. cd bin [Enter]


Creating the configuration files:

Note: The command line should read:  C:\BORLAND\BCC55\BIN

Part 1: Creating BCC32.CFG. 

1.  Type "edit bcc32.cfg" [Enter]  (This creates the file and opens a blank window in the editor). 

2. Add these lines:



3. Save the changes (Alt-F then hit S). 

4. Exit edit. (Alt+F then press X).

Part 2: Creating ILINK32.CFG 

5. Type "edit ilink32.cfg"  (This creates the file and opens a blank window in the editor). 

6. Add these lines:


7. Save the changes (Alt-F then hit S). 

8. Exit edit. (Alt+F then press X). 

9. Type "exit" [Enter] 

10. Restart Windows.


Testing the compiler:

Open a console box. 

 1.  Start | Run... 

 2.  Type "command" into the field [Enter]

 Create a directory or navigate to where you want to store your source, for example:

 3.  Type "cd" 

 4.  Type "mkdir MySource" 

 5.  cd Mysource 

 (Now in c:\MySource) 


 Create a new source file, for example:

 6.  Type "edit hello.cpp" 

 7. Paste or type the following code in the editor:

  #include <iostream.h> 

  int main(void) 


   cout << "Hello." << endl; 

   return 0; 


 8. Save the changes (Alt-F then hit S). 

 9. Exit edit. (Alt+F then press X).

 Now, compile the program to create an executable: 

 10. Type "bcc32 hello.cpp"

 Finally, you may run the application you created. 

 11. Type "hello" 

 (The output will appear below your last command line.)

Configuring Borland C++ 5.5 for GLUT/OpenGL

( This page was formerly in Swedish, but since there also seems to be demand for this kind of information abroad I've decided to both update the information for Borland C++ version 5.5 and the new GLUT version 3.7.6 and translate it to English. )


Microsoft Windows platform

Borland C++ 5.5 , free compiler from Borland (registration required)

The OpenGL Utility Toolkit (GLUT), download the latest binary version.

OpenGL Software Runtime from Microsoft

Steps to install:

Run the OpenGL95.exe file which unzips a number of files in a directory

Copy the opengl32.dll file to \windows\system\ (on Win95/98/ME) orwinnt\system32 (on WinNT/2000)

Copy GL.H, GLU.H and GLAUX.H to <borland55 install dir>\include\gl\>(create GL directory if not available)

You need to create libs from these Windows DLLs (libs also downloadable here):






Libs are created with the Borland program implib (from the command prompt). 

Usage: implib <lib_name>.lib <lib_name>.dll

Copy the libs to <borland55 install dir>\libs\

Now OpenGL/GLUT should work with the Borland C++ compiler!!

To Compile:

To compile a file you may need to include the glut32.lib library:

bcc32 -L <borland55 install dir>\lib\glut32.lib filename.c

Rember that you must add the line

#include <windows.h>


#include <GL\glut.h>

I hope these instructions make sense. If you have any questions or comments regarding the configuration (not about OpenGL programming!) please mail me:[email protected]

Installing Borland 5.5 C++ Free edition and implementing OpenGL

Everything you need to implement OpenGL using Borland 5.5 C++ is here 

along with a couple of test programs. All the files are available for 

download "here".(glut32files)

Download the following file from Borland:

freecommandLinetools.exe Download Size (8.7MB)

Click on the file you just downloaded to install the command line compiler.

After you've installed the command line tools you'll need to setup your 

computer to use them properly.

Make sure that the Borland Compiler is setup in your path. In your 

"autoexec.bat" the path line should contain the location of the BCC55/BIN


Edit your "autoexec.bat" file and add the following line:


The "autoexec.bat" file is located in the C:\ directory.

In the BORLAND\BCC55\INCLUDE\GL directory. Copy the header file "glut.h".

Copy "glut32.lib" into the BORLAND\BCC55\LIB directory.

Copy "glut32.dll" into the Windows\System directory.

Copy the two (2) 'standard' .cfg files into BORLAND\BCC55\BIN directory the compiler so it knows which 

directory to look for the include and library files.

Copy the file called "bcc32.cfg" into \BIN.

Next, copy the file called "ilink32.cfg" in the \BIN directory. This 

tells the linker where to look for the libraries.

Restart the computer so that the new path is loaded. (If you didn't 

already know, putting the BCC55\BIN in the 'path' means that you can 

run any program from that directory without 'being' in that directory.)

Open up an MS-DOS window (or a console window, if you're using 

WindowsNT/Windows2000). Make a new directory somewhere on your 

C:\ drive called "test".

Download the following test programs into the directory "test" 

you just created on your C:\ drive.





Type "BCC32", if the compiler runs - giving you a list of its commands 

then you have setup the path correctly. If it doesn't then check your 

"autoexec.bat" file to confirm that the path was setup correctly.

Test the compiler using the simple example program source code in the 

test directory "program1.cpp" by entering the following to compile the 


C:\>bcc32 program1.cpp glut32.lib

This compiles and links the program.

The program will be compiled and the BCC32 will automatically invoke 

the linker and link the glut32.lib with your program. The standard 

libraries are always linked - so you don't need to worry about those. 

You may have numerous warnings and things that look like errors, don't 

worry about compiler warnings - it's only the errors you need to possible 


Try to run your program by typing:


You should get a new window on your screen.

The code opengl1.cpp is another sample. Compile it the same way:

C:\>bcc32 opengl1.cpp glut.lib

This program opens a window and produces three points.

The code 3dobjects.cpp is another sample. Compile it the same way:

C:\>bcc32 3dobjects.cpp glut.lib

This program opens a window and produces 3 dimensional wireframe objects at the corners of a box with coordinate arrows.

The code 3dscene.cpp is another sample. Compile it the same way:

C:\>bcc32 3dscene.cpp glut.lib

This program opens a window and produces a 3 dimensional scene with shading.

SGI Examples:

"double.c" Example of double buffered program used to animate a rotating square.

"double.exe" Download the executable file and run, to see box rotate, pressing the left mouse button rotates the box, pressing the right mouse button stops the rotation.


This program shows how to composite modeling transformations to draw translated and rotated hierarchical models.

"robot.exe" Download the executable file and run, to see animated robot arm, 's' rotates the first joint, 'e' rotates the elbow joint.

You are person number to visit this site.

Bound Resources

Available through your local bookstore or click the link to purchase through Barnes and 

OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 1.2

OpenGL Reference Manual, Third Edition: The Official Reference Document to OpenGL, Version 1.2

Interactive Computer Graphics : A Top-Down Approach With OPENGL primer package-2nd Edition

OpenGL SuperBible with Cdrom

Computer Graphics Using OpenGL

Web Resources Lots of information on programming in OpenGL.

Borland Website for access to free compiler or help.

SGI Website for access to sample OpenGL programs and lots of information and help.