Help with Borland c++ compiler!!!

This is a discussion on Help with Borland c++ compiler!!! within the C++ Programming forums, part of the General Programming Boards category; HI i just saw this site, i think its pretty cool. Okay well im Alevel student in UK, we learn ...

  1. #1
    Unregistered
    Guest

    Unhappy Help with Borland c++ compiler!!!

    HI i just saw this site, i think its pretty cool. Okay well im Alevel student in UK, we learn Pascal at college. Thing is i want to learn C or C++ in my spare time and so i downloaded the Borland compiler. I have two questions:-

    1) Can i program in C on this compiler even though it says C++

    and more importantly...

    2)I downloaded te compiler and now i dont know how to make it work!!!!!!! It is saved on my harddrive but i dont know what to do to make it work.



    [P.S.]
    I dont even know if this is going to show on the message board esp. since this is my first post on ANY message board.(ill keep my fingers crossed)
    Thanx, Zohaib Khan

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    >>1) Can i program in C on this compiler even though it says C++

    Yes....

    >>2)I downloaded te compiler and now i dont know how to make it work!!!!!!! It is saved on my harddrive but i dont know what to do to make it work.

    I guess this would be the comand line compiler? The instructions will be included, but I dont think you get an IDE (code editor) with it.......I tried this tool ages ago and If I remember, the main compiler is BCC.exe??????? not to sure...the instructions on how to use it are provided.

    BTW....if you want a similar compiler with a full IDE, then Bloodshed can be downloaded free...I occasionally play with it at work when I'm bored and its not bad...I think there's a link on the main page of this site somewhere....

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    79
    I also had problems getting the compiler to work in the beggining. You have to make a few .cfg-files and stuff if I remember correctly, it's in one of the files that comes with it anyway.

    In any case, I also recommend you download Dev-C++ instead. It's much easier and nicer.
    Download it here

  4. #4
    Unregistered
    Guest

    THANX

    Thanx for the help guys. Hey i never knew that i would get reply so quickly.

  5. #5
    Unregistered
    Guest

    argh...still cant do it...

    uhhh sorry about this but i still cant get it working. It says this in the readme file:-
    Installing and running the Command Line Tools
    -----------------------------------------------

    1. Run freecommandlinetools.exe; choose the
    drive and folder into which you want to
    install the free C++Builder 5 command line
    tool development system.

    2. From the bin directory of your installation:
    a. Add "c:\Borland\Bcc55"
    to the existing path
    b. Create a bcc32.cfg file which will set
    the compiler options for the Include
    and Lib paths (-I and -L switches to
    compiler) by adding these lines:
    -I"c:\Borland\Bcc55\include"
    -L"c:\Borland\Bcc55\lib"
    c. Create an ilink32.cfg file which will set
    the linker option for the Lib path by
    adding this line:
    -L"c:\Borland\Bcc55\lib"





    Well it does go on about creating cfg files but the problem is i dont know how. i would reeeeaaalllyyyy appreaciat it if someone could give me or direct me to a step by step guide.

    thanks.

  6. #6
    Registered User
    Join Date
    Nov 2001
    Posts
    5
    I made a batch file to do the compiling

    <-------compile.bat--------->

    @echo off
    if "%1"=="" goto usage

    bcc32 -Lc:\borland\bcc55\Lib -Ic:\borland\bcc55\include %1

    goto end

    :usage
    Echo.
    Echo Enter a filename to be compiled...
    Echo Example: compile hello.cpp
    echo.

    goto end

    :end

    <----- End of batch file -------->

    save the bacth file to your c:\borland\bcc55\bin dir.
    add this directory to the path
    make a folder to save your programs in
    write a program.....

    <-------hello.cpp------->

    #include <iostream.h>

    int main()
    {
    cout << "Hello, World!" << endl;
    return 0;
    }

    <-----end of hello.cpp------->

    type compile hello.cpp and hit enter....

    run hello.exe

  7. #7
    Registered User
    Join Date
    Nov 2001
    Posts
    5

    Re: argh...still cant do it...

    Originally posted by Unregistered
    Well it does go on about creating cfg files but the problem is i dont know how. i would reeeeaaalllyyyy appreaciat it if someone could give me or direct me to a step by step guide.
    Well, I tried this and it works as well....

    1. copy the the lines below into new file in notepad.

    -I"c:\Borland\Bcc55\include"
    -L"c:\Borland\Bcc55\lib"

    2. save it as c:\borland\bcc55\bin\bcc32.cfg

    3. copy the the line below into new file in notepad.

    -L"c:\Borland\Bcc55\lib"

    4. save it as c:\borland\bcc55\bin\ilink32.cfg

    then you can run "bcc32 hello.cpp"

  8. #8
    Unregistered
    Guest

    this is getting stupid now...

    okay guys i know im probably driving you all mad but heres what happens.


    I took Animals advice (thanks) and created the required cfg files. Now problem is that when i try open them windows gives me a message saying it needs a file called heroes2.exe, to open cfg files, which it cant find??? incidently i had a game called heroes 2.


    sorry about this and thanks to everyone who tried to help!!!

  9. #9
    Registered User
    Join Date
    Nov 2001
    Posts
    5
    why do you need to open the config files? that has nothing to do with your compiler working. your windows associations are screwed up. search for associations in windows help. what you want to do is associate .cfg with notepad.exe....

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, 02:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 05:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 12:07 PM
  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

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