install borland

This is a discussion on install borland within the C++ Programming forums, part of the General Programming Boards category; Hi. I'm trying to run the Borland c++ compiler from my DOS command line, but I keep getting the statement ...

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    22

    install borland

    Hi. I'm trying to run the Borland c++ compiler from my DOS command line, but I keep getting the statement that bcc32 is not recognized as internal/external command or operable program or batch file. I think that it is the way that I changed the "path" setting on My Computer/Properties/Advanced/Environment Variables. I'm sure someone knows what's going on. --Thanks

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    The PATH environment variable must point to {Borland-install-dir}\bin
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856
    On a side note, make sure you have your bcc32.cfg file set up in the bin directory as well. This is how bcc32 locates the include and lib files.. You may have figured this out by reading the readme included, but sometimes people forget.
    Sample contents:
    -I"c:\borland\BCC55\include"
    -L"c:\borland\BCC55\lib"

  4. #4
    Registered User
    Join Date
    Feb 2003
    Posts
    595
    In the "variable value" box it has to have the full path to the "bin" subdirectory of the directory where you installed the compiler.
    For example, if you installed it in C:\borland, you should enter:
    C:\borland\bcc55\bin
    If there are already other entries for path, be careful not to erase them. Just put a semicolon ; after the last entry (if there isn't one there already) and add C:\borland\bcc55\bin after that.
    If you installed the compiler in a different drive/directory, change this entry accordingly.

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    Cool, I actually wrote a batch file to specify the include and library paths explicitly...

    But I didn't use it for long, so it didn't really matter.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Registered User
    Join Date
    Apr 2003
    Posts
    22
    When I pasted the new path into the environment variables, I did paste over the old path. Any ideas what it could have been so that I could replace it by adding with a semicolon?

  7. #7
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856
    Hahaha... A buddy of mine just did the same thing on a win2k box...

    The path is dependent on your machine. Different programs you have installed may have altered it.. I'm sure there are some directories that are shared across multiple windows boxes, but as far as reproducing the identical path you had once upon a time, it's not going to happen...

  8. #8
    Registered User
    Join Date
    Apr 2003
    Posts
    22
    Do you know how to get bcc32 to run from th command line?

  9. #9
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856
    Hehe.. That's the only way I use borland (I only have the free command line tools).. just type "bcc32" followed by your source files (.cpp's and .lib's etc). This is assuming that you have the borland/bin directory in your PATH of course.

  10. #10
    Registered User
    Join Date
    Apr 2003
    Posts
    22
    The "path" in my environmental variables is
    c:\BORLAND\BCC55\BIN
    but when I type say bcc32 hello.cpp at the command prompt I get
    "bcc32 is not an internal/external command or operable program file or batch file."

  11. #11
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    This is OT for this forum, it's also been covered before:
    FAQ: Please help to use Borland Compiler
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 10-03-2006, 04:48 PM
  2. THE END - Borland C++ Builder, Delphi, J Builder?
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 02-28-2006, 10:23 PM
  3. Opengl and Glut install for Borland
    By drdroid in forum Game Programming
    Replies: 3
    Last Post: 05-26-2003, 08:54 PM
  4. Borland and cEdit
    By Staz in forum C++ Programming
    Replies: 0
    Last Post: 08-17-2002, 07:44 AM
  5. Borland C++ v.5 & Borland Turbo C++ 4.5
    By Unregistered in forum C Programming
    Replies: 0
    Last Post: 07-21-2002, 03:30 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21