Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Download, Install, Test, and Patch C / C++ Compiler 5.5 - Classic ANSI Cpp



Permlink Replies: 0 Threads: [ Previous | Next ]
Christopher Rod...

Posts: 1
Registered: 3/19/04
Download, Install, Test, and Patch C / C++ Compiler 5.5 - Classic ANSI Cpp
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 17, 2016 6:34 PM
Getting Started with the Borland C / C++ Free Compiler 5.5
With Command Line Tools Version 5.5.1
.
Last tested 2013.03.19.
.
This is an ancient tutorial, but I post it now
for the benefit of anyone who might be interested.
.
.
.
Step By Step;
Key-stroke by key-stroke;
Mouse-Click by mouse-click;
Instruction Guide.
.
.
.
.
=== For MS Windows only.
.
[quote]
The Borland C++ 5.5 compiler
does not support Mac or linux.
--
David Dean (Embarcadero)
Lead C++ QA Engineer
[End Quote]
.
.
.
===
.
Note: If you are using Microsoft Windows as an operating system,
then you are normally using and navigating on your computer
using the "Windows Explorer" environment--
whether you were aware of that or not.
.
This compiler is used from the "Command Prompt"
and NOT from the normal "Windows Explorer" environment.
.
The following instructions were tested
using both Windows 98se and Windows XP,
but without the two patches
that are discussed further below
since I had not been aware at the time
of this tutorial's creation
that patches existed.

===

Instructions - Start Here.

Get the download
from embarcadero.com at
http://forms.embarcadero.com/forms/BCC32CompilerDownload

===

Introductory information:

After downloading,
when you double-click (and therefore 'execute')
the file "freecommandLinetools.exe",
the command line compiler will begin to be
"Unloaded" onto your system.

The compiler will Not be installed on your system,
but rather it is simply unloaded (unpacked)
onto your system.

The balance of this guide's instructions
will assume you did use the default folder
"C:\Borland\BCC55"
when you are prompted for a location for the compiler
to be unloaded.

===


Unloading The Compiler Onto Your System.

Double-click the file "freecommandLinetools.exe".

At the first window, "Borland C++ Compiler 5.5.1 - Welcome",
Click the "Next" button.

At the next window,
"Borland C++ Compiler 5.5.1 - Installation Folder",
leave the default installation folder as
"C:\Borland\BCC55" and click the button "Finish".

A new window appears named "PackageForTheWeb", and reads
"The Specified output folder does not exist. Create it?".
Click the button "Yes".

A window with a progress bar shows the package being unloaded
to the location you specified earlier.

A window appears named "PackageForTheWeb", and reads
"The package has been delivered successfully".
Click the button "OK".

===


*You must create 2 additional files,
bcc32.cfg and ilink32.cfg,
to test your compiler*

When using the compiler, the bcc32.exe and ilink32.exe files
will look for files bcc32.cfg and ilink32.cfg
so that you don't have to enter this information
each time you compile C\C++ source code.

The two .cfg files (mentioned here and in the readme.txt file
included with the installation of the free command line tools)
are simply text files.


bcc32.cfg file: How to create

Open Microsoft Notepad (or your favorite text editor.
Do not use "Wordpad" since it may add extra invisible coding markup to the text files
which corrupts the text files-- and Microsoft "Word" definitely corrupts the text files).

Copy the following two text lines between the "=" signs: into a new Notepad file.

===bcc32.cfg = Start = Do not copy this line ===

-I"c:\Borland\Bcc55\include"

-L"c:\Borland\Bcc55\lib"

===bcc32.cfg = The end = Do not copy this line ===

(This assumes that you installed the compiler to the default directory of
C:\Borland\Bcc55. If not, you must change the above text as appropriate.)

Note: that the first letter in this file is a Capital i, NOT a lower case L--
in other words, character-by-character, {-}{capital i}{"}{c}{:}{\}{B}, etc. ...
Borland is spelled with a lower-case "L" ...
"include" has a lower-case L between the "c" and "u" ...
and "lib" is 3 lower-case letters: L, i, and B.

I go through all this detailed explanation of the characters
because if any one character is wrong, you will experience errors
and you will not get the compiler to work.

To avoid confusing a lower case L with a capital i, for example,
(since they appear as exactly identical characters in some fonts)
I always use the 'Courier New' font when possible--
although 'Verdana' also lets you distinguish between each charater
and does not have characters which display the same as another character.

Save this file in folder c:\borland\bcc55\bin\ (where bcc32.exe is located), and..

..and save the file as "bcc32.cfg" -- and use the Double-quotation marks
before and after the file name.

You must use double-quotation marks when naming and saving this file, otherwise,
if you are using Microsoft Notepad, and if you forget the double-quotes,
the file will automatically be saved as bcc32.cfg.txt .

Check to see that you now have a file c:\borland\bcc55\bin\bcc32.cfg .

Critical Note: Although the file may appear to exist at this location as "bcc32.cfg",
it could in fact be stored there as "bcc32.cfg.txt"
and you will not be aware of this critical error because it appears to be okay.

This error is a major problem and will be the case
if you have inadvertently created the file as bcc32.cfg.txt,
and if your system is "hiding extensions for known file types".

"Hiding file extensions for known file types"
is the default condition for both Windows 98 and Windows XP.

You must change this default condition to establish whether or not the file
is named without the ".txt" extension added-- or in other words,
you must have the box "[ ] - Hide file extensions for known file types" unchecked as the option.

The Win98 and WinXP default is to hide known extensions,
including, but not limited to, ".txt"--
so change this option so that it is un-checked
and you will then see all files displayed with their true and full file names.

..found in Windows 98 in any "Windows Explorer" folder view window at
"Views" > "Folder Options..." > tab: "View".
Scroll down a bit and uncheck "[ ] - Hide file extensions for known file types".
Click the button "OK".

..found in Windows XP in any "Windows Explorer" folder view window at
"Tools" > "Folder Options..." > tab: "View".
Scroll down a bit and uncheck: "[ ] - Hide file extensions for known file types".
Click the button "OK".

..... ilink.cfg file: How to create .....

Create a second new text file you will name ilink32.cfg.

Copy the following single text line between the "=" signs: into a new Notepad file.

===ilink32.cfg = Start = Do not copy this line ===

-L"c:\Borland\Bcc55\lib"

===ilink32.cfg = The end = Do not copy this line ===

Note: 'lib' is 3 lower-case letters L, i, & B

Put this second file also in the Bcc55\bin folder (where bcc32.exe is located), and..

..save it as "ilink32.cfg" --using the double-quotation marks.

Check to see that you now have a file c:\borland\bcc55\bin\ilink32.cfg

..... Using the compiler and testing your work .....

Use DOS (the Disk-Operating-System command prompt) to navigate
to the directory housing the actual compiler "bcc32.exe".

(The following assumes you unpacked the original files into the default location
C:\Borland\Bcc55).

The C++ compiler is meant to be run from within a DOS shell,
so after you have unloaded the compiler as directed above,
now you have to work from the DOS command line.

The following instructions will take you to c:\borland\bcc55\bin
using the DOS command prompt.

..... Go to the DOS command line (also know as the DOS prompt) .....

To get to the DOS command line using Windows 98... click: "Start" > click: "Run" >
then type: "command" (without the quotes) > click: "Ok".

To get to the DOS command line using Windows XP... click "Start" > click "Run..." >
then type: "cmd" (without the quotes) > click: "Ok".

[Note: to switch the "DOS-command-prompt-window"
between smaller-window and Full-Screen mode,
hold down either of the "Alt" keys;
and press the "Enter" key. (Alt+Enter).]

A DOS window displaying "C:\WINDOWS\Desktop>" (or possibly "C:\WINDOWS>")
(or possibly "C:\Documents and Settings\User_Name>") appears,
but you want to get to "C:\Borland\BCC55\Bin>".

To navigate up one level higher for example, from "c:\WINDOWS\Desktop>" to "c:\WINDOWS>",
type "cd .." (without the quotes) and press Enter.

[Note: CD is short for change directory]

You are now one level higher in the DOS directory. You are now at "c:\WINDOWS>"
(or you are at "C:\>" if you started in "C:\WINDOWS>").

Again type "cd .." (without the quotes) and press Enter. You are now at "c:\>".
This is the top directory (or "folder", if you like) of disk partition "C:".

To navigate down into a DOS sub-directory from your present DOS directory location,
for example from "C:/>" to "C:/BORLAND"...

At DOS prompt "C:\>", type "cd borland" (without the quotes), and press Enter.
You are now at "C:\Borland>".

At DOS prompt "C:\Borland>", type "cd bcc55" (w/ out quotes), press Enter.
You are now at "C:\Borland\bcc55>".

At DOS prompt "C:\Borland\BCC55>", type "cd bin" (w/ out quotes), press Enter.
You are now at "C:\Borland\bcc55\bin>".

[Advanced DOS tip: at "c:\WINDOWS\Desktop>" you could type
"cd c:\borland\bcc55\bin" (without the quotes), and press Enter.]

The computer should now be displaying in the DOS prompt window:
"C:\BORLAND\BCC55\BIN>".

Type "dir /a" (without the quotes) [or "dir/a" w/out qoutes],
and press Enter.

Note: the "/" is a forward slash and is called a "switch".

DIR is the "directory" command and gives you a list of all
the files and directories in this directory. Adding " /a", or "/a",
will include hidden files (DIR /A [enter]).

Double check that you see files "ILINK32.CFG", and "BCC32.CFG"
and make sure that they do not have the file extension ".txt" added
at the end of their names.

Note: If you want to rename a file using DOS
and the file is in the directory you are at--
for example, to change ILINK32.CFG.TXT to ILINK32.CFG--
from the DOS window, type "rename ilink32.cfg.txt ilink32.cfg" (without the quotes),
and press Enter.

We will now create a file "hello.cpp" to test the compiler installation
on your system. The first method we will cover will be using a DOS editor.

..... How to create test file "hello.cpp": Option 1 of 2. Using DOS editor .....

Navigate computer to DOS prompt window: "C:\BORLAND\BCC55\BIN>",
if not there already.

..... Open the "MS-DOS Prompt - EDIT" editor: How to .....

At DOS prompt "C:\BORLAND\BCC55\BIN>", type "edit" (without the quotes),
press Enter.

Into your "MS-DOS Prompt - EDIT" editor, type the following six text lines
between the "=" signs. Type the follow as-it-is including the final "}".

( Note: "endl" is a group of 4 LOWER case letters, E, N, D, L)

===hello.cpp = Start = Do not copy this line =====

#include <iostream.h>

int main(void)

{

cout << "Hello." << endl;

return 0;

}

===hello.cpp = The end = Do not copy this line ===

Save file as Filename: hello.cpp .

This will save hello.cpp in the BIN directory you opened the editor from.

To exit the DOS text editor, click the top menu item "File",
and in the drop-down menu, click "Exit".

We will now learn how to create the same test file using Notepad.
You may skip down to "Compile hello.cpp" if you created hello.cpp using the DOS editor.

..... Create test file hello.cpp: Option 2 of 2: Using Notepad text editor
from the Windows Explorer environment .....

Copy the following 6 lines between the "=" signs: into a new Notepad file.

===hello.cpp = Start = Do not copy this line ===

#include <iostream.h>

int main(void)

{

cout << "Hello." << endl;

return 0;

}

===hello.cpp = The end = Do not copy this line ===

( Note: endl is a group of 4 LOWER case letters, E, N, D, L)

Save: in directory C:\BORLAND\BCC55\BIN as file "hello.cpp" (WITH the double-quotation marks)

..... Checking "hello.cpp" file name and location using DOS window .....

Back in the DOS command prompt window, navigate to "C:\Borland\BCC55\Bin>"
if you are not there already.

To see whether hello.cpp is in this directory, type "dir" (without the quotes),
and press Enter.

The file hello.cpp should be displayed here as hello.cpp and not as hello.cpp.txt

If you want to rename the file hello.cpp.txt to hello.cpp from the DOS window,
type "rename hello.cpp.txt hello.cpp" (w/ out quotes), and press Enter.

.... Compiling test-- using file hello.cpp .....

How to compile source code file "hello.cpp" at "C:\Borland\BCC55\Bin\hello.cpp>"
to create executable code file "hello.exe".

Back in the DOS command prompt window, navigate to "C:\Borland\BCC55\Bin>"
if you are not there already.

Type "bcc32 hello.cpp" (without the quotes), and press Enter.
[or just "bcc32 hello" (without quotes), and press Enter.]

If you see the following five lines including a blank fourth line, ...

===

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
hello.cpp:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland

C:\Borland\BCC55\Bin>

===

... then Congratulations. You have been successful,
and you are compiler error free.

This compile process created 3 new files:
hello.exe, hello.obj, and hello.tds
in the same folder that hello.cpp occupies.

If you see errors, Return above here and re-read / and re-check everything.

..... Compiler errors .....

For example, these errors ...

error E2209 unable to open include file iostream

error E2282 namespace name expected

error E2451 undefined symbol cout in function main{}

error E2451 undefined symbol endl in function main{}

*** 4 Errors in Compile***

...will occur if you did not create the bcc32.cfg file properly,
and/or did not place it in the "bin" folder so that it is at

c:\borland\bcc55\bin\bcc32.cfg ... or if your text editor saved it as bcc32.cfg.txt ...
or if you mistyped characters somewhere.

After you get hello.cpp to compile without error(s)...

..... Execute / Run your new executable code file "hello.exe" .....

To run your new program (known as object code "hello.exe")...

At the DOS command prompt "C:\Borland\BCC55\Bin" type "hello.exe" (w/out quotes),
[or just "hello" (w/out quotes),] and press Enter.

The word "Hello." should appear by itself on a line followed by your DOS prompt line.

If so, compiler testing is successful and complete.

....... AUTOEXEC.BAT file: add an additional line: To save and compile files
in any directories of your choice:

The above compiler test of file hello.cpp required you to save your hello.cpp file
in the BIN directory which housed the compiler file bcc32.exe to function properly.

You may create new *.cpp files and compile them into *.exe files anywhere on the C: drive,
but you must first change the AUTOEXEC.BAT file by adding an additional line of code.

To be able to save and compile files in the directories of your choice,
you must add the following one line to your AUTOEXEC.BAT file.

===AUTOEXEC.BAT = The beginning = Do not copy this line ===

PATH=C:\BORLAND\BCC55\BIN;%PATH%

===AUTOEXEC.BAT = The end = Do not copy this line ===

Just put the above line at the bottom of any other line (if any) in your AUTOEXEC.BAT file.

A carriage return [in other words, clicking the "Enter" key]
may follow after this line in the autoexec.bat file.
Extra blank lines in this file will have No adverse affect.

You Must Restart the computer for the change to AUTOEXEC.BAT to take effect.

..... To test the new AUTOEXEC.BAT .....

Copy "hello.cpp" into any new folder using the Windows Explorer environment.

Note: The characters you type into the DOS window are Not case-sensitive.

In the DOS window, navigate to the folder where you have copied the file "hello.cpp".

Type "BCC32 HELLO.CPP" --without the quotes (or "bcc32 hello" --without the quotes),
and press Enter.

It should compile error free.

Type HELLO, (or hello.exe) and press Enter.
"Hello." should display.



2 Compiler Patches.

The instructions above were tested without the
two available patches that were released for this compiler,

You will find the two patches
for the compiler in my '2-patches' folder;
http://www.great-grandma.com/code/borland/cpp_v5.5/2-patches/

From there, see the two additional separate sub-folders
http://www.great-grandma.com/code/borland/cpp_v5.5/2-patches/patch_1/
and
http://www.great-grandma.com/code/borland/cpp_v5.5/2-patches/patch_2/

Each of those two folders contain a file (or files)
relating to each of the two patches.

RIGHT-Click each of the files you want,
and 'Save' them on your computer
where you will know where to find them.

I originally obtained the two patches via links on the page,
http://edn.embarcadero.com/article/37236

However, that page now displays:
"Updates are no longer available for C++Builder 1.0 and the Borland C++ Compiler 5.5."

===

I have not pursued C++ much beyond the point
of the above installation guide.

If you find anything at all wrong with my installation guide above,
you will be doing others a favor by notifying me of my errors,
and I will gladly correct any errors you find
in an effort to help others on their path to learning C++.

E--address..

chris (*dot*) aquakeys (*at*) gmail (*dot*) com

I truly wish you all the very best.



At a glance (or two) these look like
pages which might be of help to you
and the second one is where I learned today
that two patches were released for the compiler.

http://users.actrix.co.nz/dscott/bcc55.html

"Service Packs 1 and 2" (patches 1 and 2) and "Post-SP2 Bugs".
http://jesusnjim.com/code/bcc55.html



2010.07.15.
The Bruce Eckel Free-to-download guide.

I can not comment on this guide except to say that
Bruce Eckel's earlier guides were highly recommended
on a couple of different sites three years ago.

The following guide is by Bruce Eckel on his site, http://www.mindview.net

Thinking in C..
http://www.mindviewinc.com/CDs/ThinkingInC/



The following were additional resources
I posted with my installation instructions
at Borland three years ago,
but I have little or no experience with them,
just as I have very little experience with C++.

Some of the links work, and some do Not.

I leave them posted here because they all used to be working links,
and they may be of use to you if you realize what had once been available.

They might be starting points in your mind for additional Google searches.

===

..... Download Borland Help Files .....

Get help files at Borland page ..

[Dead link 2010.07.15]
http://info.borland.com/techpubs/bcppbuilder/v5/updates/pro.html

or Borland page ..

[Dead link 2010.07.15]
http://info.borland.com/techpubs/bcppbuilder/v5/updates/ent.html

Get 4 files ...

--b5errs.zip - Help for compiler messages and warnings.

--b5rtl.zip - Reference to runtime language elements available to your C and C++ programs.

--b5scl.zip - Complete reference to standard C++ classes and functions, including Standard Template Library (STL).

--b5ms.zip - Collection of Microsoft Windows 32-bit API Help files.

..... Borland Newsgroups.....

http://info.borland.com/newsgroups/

Borland C++ Newsgroups ..

http://info.borland.com/newsgroups/ng_bcpp.html

Borland Answers

[Dead link 2010.07.15]
http://support.borland.com/kbindex.jspa

..... Borland Installation News groups [~2007 ??] .....

Load these addresses into your browser and click "GO". Your email client, in my case "Outlook Express", will open appropriately and prompt you to respond "Yes" to several "subscription" questions.

news://newsgroups.borland.com/borland.public.install.bcpp

news://newsgroups.borland.com/borland.public.install.cppbuilder

My return here is irregular. If you have any questions, I suggest you use 1 of the 2 news groups listed above. They were the first newsgroups I installed in Outlook Express, and it worked easier than I expected.

..... Borland FAQ's / Study Guides .....

"C/C++ Frequently Asked Questions and Technical Information" downloads (These files are updated nightly).

[Dead link 2010.07.15]
http://bdn.borland.com/downloads/

See "C/C++".

See "index.html" within the *.zip file.

Borland Certification Study Guides - Adobe Reader required ...

[Dead link 2010.07.15]
http://www.borland.com/services/certification/studyguide/index.html

..... C/C++ FAQ

[alt.comp.lang.learn.c-c++] - FAQ list

http://www.faqs.org/faqs/C-faq/learn/



Thank you to Borland and those who posted before me whose tips and instructions I used to create this precise step-by-step guide.

My contributions to this page are Copyright Free by Christopher James Francis Rodgers 2013

Edited by: Christopher Rodgers on Feb 17, 2016 6:35 PM
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02