Borland C compiler

This is a discussion on Borland C compiler within the C Programming forums, part of the General Programming Boards category; I don't get it how to use it ... you go to MS-DOS and then u go to the borland ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    8

    Borland C compiler

    I don't get it how to use it ... you go to MS-DOS and then u go to the borland directory and then to BCC32.exe and then what do u type there, for example if I have the code in this directory: c:/borland/doc.cpp

    Please help, thanks

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    This is what books and documentation is for.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231

    Re: Borland C compiler

    Originally posted by BladeBoss2
    I don't get it how to use it ... you go to MS-DOS and then u go to the borland directory and then to BCC32.exe and then what do u type there, for example if I have the code in this directory: c:/borland/doc.cpp

    Please help, thanks
    There's a help file that comes with Borland 5.5, it's in the sub directory called.... err.. help! If you haven't got it, download it from Borland's web site.

    Do a google search for further help, I've seen web pages telling you how to do it all.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #4
    Registered User
    Join Date
    May 2002
    Posts
    8
    Finally I got it to work but anywayz i saved the code :

    #include <iostream.h>
    int main() //Most important part of the program!
    {
    int age; //Need a variable...
    cout<<"Please input your age: "; //Asks for age
    cin>>age; //The input is put in age
    if(age<100) //If the age is less than 100
    {
    cout<<"You are pretty young!"; //Just to show it works
    }
    else if(age==100) //I use else just to show an example
    {
    cout<<"You are old"; //Just to show you it works...
    }
    else
    {
    cout<<"You are really old"; //Executed if no other statement is executed
    }
    return 0;
    }


    And i had 3 errors:
    Error 1 - Unable to open include file 'iostream.h'
    Error 2 - Undefined symbol 'cout' in function main()
    Error 3 - Undefined symbol 'cin' in funtion main()

    Blade

  5. #5
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    I 2nd both the original replies with the following reasoning:
    This is a general C programming syntax board, not a compiler technical support / help board.

    The board doesn't read:
    "Come here if you refuse to read the manual"

    Ok, judging by your new post, it's a syntax error.

    > Error 1 - Unable to open include file 'iostream.h'
    > Error 2 - Undefined symbol 'cout' in function main()
    > Error 3 - Undefined symbol 'cin' in funtion main()
    Program in C.

    [EDIT]
    BTW, using code tags will make alot of people around here very happy.
    [/EDIT]
    Last edited by Shadow; 05-20-2002 at 05:41 PM.
    The world is waiting. I must leave you now.

  6. #6
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    It's gone wrong 'cos it doesn't know where your include library is. You must have that .cfg file setup correctly.

    See here

    And please use code tags when posting code in future.

    And lastly, please post your C++ code in the appropriate forum (this is for C only).
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  7. #7
    Registered User
    Join Date
    May 2002
    Posts
    8
    Thanks guy I didn't know it was C++

    I went to C tourtials and I thought this code was for C

    And i'll use the [Edit] [/Edit] for the codes

    thanks

  8. #8
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >And i'll use the [Edit] [/Edit] for the codes
    Code tags like in my signature......
    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. 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