Thread: Borland

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    115

    Borland

    Hi guys,
    Ive just started using borland c++ 6 and im trying to work out how to compile and run a C file. I used to use cygnus which has a command line with gcc.
    I cant seem to run and C files on borland. Ive tried various search engines but they've return garbage.

    THanks
    there are only 10 people in the world, those who know binary and those who dont

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    115
    isnt there a built in compile/run button for C files?
    or do u have to compile in command prompt separetly
    there are only 10 people in the world, those who know binary and those who dont

  3. #3
    Registered User pinko_liberal's Avatar
    Join Date
    Oct 2001
    Posts
    284
    Originally posted by Salem
    > isnt there a built in compile/run button for C files?
    Yeah the same one you press to compile C++

    You just name your files to be prog.c rather than prog.cpp

    Create console / command line programs with .c and .cpp files for the following program, and run the results.

    Code:
    #include <stdio.h>
    int main ( ) {
      printf( "This was compiled using a %s compiler\n",
        sizeof('c') == 1 ? "C++" : "C" ); 
    }
    Just a question; Isn't it theoretically possible to have an implementation where sizeof(int)==1, CHAR_BITS will have to be more than 8 in this case given the range of values an int is supposed to have.
    The one who says it cannot be done should never interrupt the one who is doing it.

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, 11:23 PM
  3. Visual C++ and Borland C++ Builder :: Breakdown
    By kuphryn in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 02-24-2004, 04:53 PM
  4. Problem with Borland 5.5
    By Gregthatsme in forum C++ Programming
    Replies: 2
    Last Post: 05-25-2003, 08:07 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