Thread: Borland C++ command Line compiler

  1. #1
    hacker in training AdamLAN's Avatar
    Join Date
    Sep 2004
    Posts
    56

    Exclamation Borland C++ command Line compiler

    I have downloaded and installed the Borland C++ Command Line Compiler 5.5.1, I have installed it and ran it exactly as instructed in the FAQ. However, i can't get it to work properly. I re-did it a few times and sent a few emails, but nothing seems to work. I was wondering if there was anyone who could help me.

    If I try and compile a program called "Cpp.cpp" I get this error message:
    C:\Borland\BCC55\Bin>bcc32 Cpp.cpp
    Borland C++ 5.5.1 Win32 Copyright (c) 1993, 2000 Borland
    Cpp.cpp:
    Error E2209 Cpp.cpp 1: Unable to open include file 'iostream'
    Error E2265 Cpp.cpp 2: No file name ending
    Error E2209 Cpp.cpp 3: Unable to open include file 'cstdlib'
    Error E2282 Cpp.cpp 4: Namespace name expected
    Error E2268 Cpp.cpp 5: Call to undefined function 'srand' in function main()
    Error E2268 Cpp.cpp 6: call to undefined function 'time' in function main()
    Error E2451 Cpp.cpp 7: Undefined symbol 'cout' in function main()
    Error E2451 Cpp.cpp 8: Undefined symbol 'endl' in function main()
    Error E2268 Cpp.cpp 9: Call to undefined function 'rand' in function main()
    Warning W8013 Cpp.cpp 21: Possible use of 'b' before definition in function main()
    Warning W8013 Cpp.cpp 23: Possible use of 'score' before definintion in function main()
    Error E2451 Cpp.cpp 24:Undefined symbol 'cin' in function main()
    ***10 errors in Compile***
    C:\Borland\BCC55\Bin>

    I think there may be something wrong with the config files. But I'm not sure.

    Can someone please help me?!!!

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Are you sure you followed this correctly?

    Try compiling this, and post the errors:
    Code:
    #include <iostream>
    
    int main(void)
    {
      return(0);
    }
    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, 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