Thread: Borland 5.5 compiler help!

  1. #1
    Programmer Frantic-'s Avatar
    Join Date
    Dec 2004

    Borland 5.5 compiler help!

    Ive downloaded and installed and created the needed cfg files and added the needed paths.

    In order for it to compile, do I need to save my file in the bin, or what.


  2. #2
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    No you don't. Just add the path to your bin directory in your system PATH or type the entire path when you compile, e.g., c:\>c:\borland\bcc32\bin\bcc32.exe your_source.cpp

  3. #3
    Programmer Frantic-'s Avatar
    Join Date
    Dec 2004
    thats a bit blurry to me.


    I have test.cpp saved in c:/c++/test


    So i would type in the following?

    c:\borland\bcc32\bin\bcc32.exe c:/c++/test/test.cpp

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Waterloo, Texas
    right. here are some other tips:

    1) add c:\borland\bcc32\bin to the path variable in your autoxec.bat file (you'll need to reboot before it takes effect).
    2) when compiling a file, change the directory to the one the file is in. open the command prompt and type:
    cd c:\c++\test

    now you simply type:

    bcc32 test.cpp

    you can also create a batch file like this in your c:\borland\bcc32\bin directory:

    @echo off
    if exist %1.tds del %1.tds
    if exist %1.obj del %1.obj
    if exist %1.exe del %1.exe
    bcc32 %1.cpp
    @echo on

    assuming you named it bc.bat you would simply type:

    bc test will compile and run the program all in one shot.
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
        return std::pow
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM