faqts : Computers : Programming : Languages : C++

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

15 of 18 people (83%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

C++: Borland: Compiler: Command: Line: Install: How to install free Borland command line compiler?

Sep 29th, 2003 04:36
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 29 September 2003 - 00:53 pm ------------------

C++: Borland: Compiler: Command: Line: Install: How to install free 
Borland command line compiler?

Steps: Overview:

 1. download the free command line compiler from www.borland.com

     http://www.borland.com/products/downloads/download_cbuilder.html

    then click on 'Compiler'

 2. to install, after downloading, type on the command line:

     freecommandlinetools.exe

    then follow the instructions.

    This will create, by default, a directory:

      'c:\borland\bcc55'

 3. to find the compiler executable 'bcc32.exe',
    possibly add to the DOS environment PATH:

     SET PATH=%PATH%;c:\borland\bcc55\bin

    Note: adapt this file path to the conditions on
          your computer

 4. create e.g. the following batch file ( and save this
    e.g. as 'bcc55.bat' ):

     @REM: the following all on on line
     c:\borland\bcc55\bin\bcc32.exe -Ic:\borland\bcc55\include -
Lc:\borland\bcc55\lib %1.cpp

     @IF errorlevel=1 GOTO fail

     %1.exe

     @GOTO end

     :fail

     @ECHO.

     @ECHO.

     @ECHO.

     @ECHO There where errors found while compiling your program.

     @ECHO.

     @ECHO Could not compile to .exe...

     @ECHO.

     @ECHO.

     :end

     @PAUSE

 5. to compile and run, type on the command line:

      <your batch filename> <your cpp filename>

    e.g. to compile the file 'helloword.cpp', type:

       bcc55.bat helloworld

    e.g. to compile the file 'testaddress.cpp', type:

       bcc55.bat testaddress

---
---

Internet: see also:

http://community.borland.com/article/0,1410,20997,00.html

http://community.borland.com/article/0,1410,21205,00.html

http://community.borland.com/article/0,1410,21422,00.html

http://community.borland.com/article/0,1410,20633,00.html

http://apurvaslair.50g.com/cpp/compilers/borland.html

http://www.pharo.onlinehome.de/Practice.htm

----------------------------------------------------------------------