a.exe

This is a discussion on a.exe within the C Programming forums, part of the General Programming Boards category; I'm trying to run programs from the command line for once. I'm using MinGW. When I compile it using gcc ...

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    55

    a.exe

    I'm trying to run programs from the command line for once. I'm using MinGW. When I compile it using gcc it creates an executable named "a". I was wondering how to specify what the name of the .exe beforehand.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,272
    Do something like:
    Code:
    gcc -o programname.exe sourcefile.c
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Installing Wireless Drivers In Linux
    By mike_g in forum Tech Board
    Replies: 1
    Last Post: 12-05-2007, 05:53 AM
  2. How to add a Icon to my C (a.exe) program
    By ashok449 in forum C Programming
    Replies: 1
    Last Post: 11-16-2007, 02:58 AM
  3. File reading/writing question
    By Rider in forum C++ Programming
    Replies: 26
    Last Post: 12-23-2006, 05:27 AM
  4. Running My Program
    By Jeff in forum C Programming
    Replies: 27
    Last Post: 09-02-2004, 06:50 PM
  5. Questions on Speed of Execution
    By wavering in forum C Programming
    Replies: 22
    Last Post: 01-20-2002, 02:04 PM

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