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.
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 ...
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.
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