It's been a while since I set mine up. Running the intitial installation file should go through the process of asking you where you want to install the program, telling you it was unpacked when done. Note the drive and folder you choose to install to. I installed to "G:\Borland" to keep C: clean but that's just me -- and it created a "BCC55" folder under that.
In the BCC55 folder is a file called "Readme.txt" which you can read (or should be able to on most Windows PCs) by clicking on. It includes configuration info.
On my PC I added to my "autoexec.bat" file the command:
PATH = G:\Borland\Bcc55;G:\Borland\Bcc55\Bin
Which (at least under windows NT and 95) tells the operating system where the compiler ".exe" are. Pay attention to the fact that I installed mine on my "G" drive.
As the read-me says, in the BIN folder under BCC55 I created the "iLink32.cfg" file by right clicking, making a new text file and renaming it. If your computer does not pull ".cfg" files up into notepad/wordpad when you double click on them, just change the extension to .txt to edit it. When done editing, change it back to .cfg.
Mine reads (there is flexibility in options - don't think these are what you absolutely have to have):
-L"G:\Borland\Bcc55\lib"
/aa
/Tpe
The first parameter pointing to the drive ("G") and folder I installed in.
As the readme says, I created a "Bcc32.cfg" file, also, by creating a new text document and renaming. It reads:
-I"g:\Borland\Bcc55\include"
-L"g:\Borland\Bcc55\lib"
Again, I installed it in "G" so my paths start with G; if you install in "C" you'd start with "C".
Once I was done, it works for me. I use batch files as other people suggest, to do my compiling. Created by making a new text document by right clicking in the folder and changing the extension to be .bat. (using the "Edit" command from a right-click on the file to edit it). My typical batch file is:
bcc32.exe -5 -W -a4 "Main C Source.cpp" > error.txt
Note that I use a pipe (">") to output the TEXT of the result (the error messages) to a file I prefer to call "error.txt" to see what went wrong and where (I always mess up five times before I get it right). The ">" only redirects the compiler warning and error messages - once I solve all my errors the actual executable pops out in the folder - in the above case it'd appear as "Main C Source.exe".
Once the path and configuration files are set, I can compile anywhere I want to.
As far as switches and such, you'll have to look them up (the above compiler switches are for windows executable, pentium instructions, 4 byte alignment - in general).
I've been able to use the compiler quiet a bit for playing around - although some things aren't perfect under NT.
Barring misspellings and rushing before I think, that's how I set mine up for Windows NT and Windows 95/98.