1) Go to this page and register for the download: http://forms.embarcadero.com/forms/BCC3 ... erDownload
That registration will result in an e-mail containing a download link.
Download and install the compiler from that link.
2) The installer would have installed the software in this folder location:
Code: Select all
c:\Borland\BCC55
Code: Select all
c:\Borland\BCC55\Bin
To test this PATH change start Zeus and use the Tools, Command Line menu and run this command:
Code: Select all
bcc32.exe
Code: Select all
'bcc32.exe' is not recognized as an internal or external command, operable program or batch file.
Code: Select all
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Syntax is: BCC32 [ options ] file[s] * = default; -x- = turn switch x off
-3 * 80386 Instructions -4 80486 Instructions
-5 Pentium Instructions -6 Pentium Pro Instructions
-Ax Disable extensions -B Compile via assembly
-C Allow nested comments -Dxxx Define macro
-Exxx Alternate Assembler name -Hxxx Use pre-compiled headers
-Ixxx Include files directory -K Default char is unsigned
-Lxxx Libraries directory -M Generate link map
-N Check stack overflow -Ox Optimizations
-P Force C++ compile -R Produce browser info
-RT * Generate RTTI -S Produce assembly output
-Txxx Set assembler option -Uxxx Undefine macro
-Vx Virtual table control -X Suppress autodep. output
-aN Align on N bytes -b * Treat enums as integers
-c Compile only -d Merge duplicate strings
-exxx Executable file name -fxx Floating point options
-gN Stop after N warnings -iN Max. identifier length
-jN Stop after N errors -k * Standard stack frame
-lx Set linker option -nxxx Output file directory
-oxxx Object file name -p Pascal calls
-tWxxx Create Windows app -u * Underscores on externs
-v Source level debugging -wxxx Warning control
-xxxx Exception handling -y Produce line number info
-zxxx Set segment names
Code: Select all
bcc32.exe -Ic:\Borland\bcc55\include -Lc:\Borland\bcc55\Lib "$fn"
NOTE: The command line above will create a console Windows executable. If you want to build Windows GUI executable you will need to change the command line to be:
Code: Select all
bcc32.exe -tW -Ic:\Borland\bcc55\include -Lc:\Borland\bcc55\Lib "$fn"
4) Create a sample hello.cpp file as shown below:
Code: Select all
#include <stdio.h>
int main(void)
{
printf("Borland C++ 5.5 Compiler Example.");
return 0;
}
5) Use the Compiler, Compile menu to compile that file and the resulting compile and link will produce a hello.exe file in the same directory.
6) Use the Macros, Execute 'hello.exe' menu to run that executable and you should see this output.
Code: Select all
Borland C++ 5.5 Compiler Example.