exe file creation using run prompt

This is a discussion on exe file creation using run prompt within the C Programming forums, part of the General Programming Boards category; Hi, Please help me to create executable file for c program using run prompt(i.e. without using Turbo/Borland C such compilers)....

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    32

    Lightbulb exe file creation using run prompt

    Hi,
    Please help me to create executable file for c program using run prompt(i.e. without using Turbo/Borland C such compilers).

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,852
    OK, so two compilers off the list.

    Which other ones can we use?

    Normally, it's something like
    cc -o program.exe prog.c

    cc is the name of your compiler, which may be gcc or cl or ....
    -o is what you want to call your executable file, though try /o for something more M$ based.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by siperi View Post
    Hi,
    Please help me to create executable file for c program using run prompt(i.e. without using Turbo/Borland C such compilers).
    You're not going to create an executable program without some sort of compiler. No matter what you're doing it has to go through a number of steps to get from text to object code to PE image... How do you plan to do that without a compiler?

    As for Turbo C ... It's a dinosaur that you should be ashamed of running. It generates 16 bit code witch is barely supported anymore and won't run on 64 bit OSs. You seriously need to get modern... at minimum 32 bits, preferably a compiler that will produce both 32 and 64 bit programs.

    I generally recommend Pelles Cfor C development or Code::Blocks with MinGwfor C and C++ work. Both are free.

    A lot of mid-eastern schools are still pounding TurboC. But it makes no sense whatsoever to do so in a world of 64 bit machines.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 05:27 PM
  2. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 04:53 AM
  3. Inventory records
    By jsbeckton in forum C Programming
    Replies: 23
    Last Post: 06-28-2007, 05:14 AM
  4. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 01:13 AM
  5. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 10:54 AM

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