Reputation: 11012
Is there a way to change the default a.out
to something nicer, like file.c
automatically becomes file
?
I know one can do this with gcc file.c -o file
, but... is there something easier?
Upvotes: 0
Views: 679
Reputation: 1023
It's a bit dirty, but you could write a shell script to automatically append the -o filename.
Upvotes: 0
Reputation: 272497
No.
Although if you have make
available, you can just do:
make file
Upvotes: 5