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.
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
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)