This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Need help


----- Original Message -----
From: "Jules FOSSO" <fosso@firemail.de>
> What command line(s) should i give on the bash in oder to have an
> executable programm?
 
I think what you are looking for is the "-o [name of executable]"
option, eg:
# gcc -o hello hello.c
or:
# gcc -c module.c
# gcc -o hello hello.c module.o

If you do not specify the -o option you would end up with an
executable named "a.out".
See "man gcc" for more information on these flags.

Regards,
 Martin.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]