tekknolagi
tekknolagi

Reputation: 11012

Change default C compiler output

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

Answers (2)

ratbum
ratbum

Reputation: 1023

It's a bit dirty, but you could write a shell script to automatically append the -o filename.

Upvotes: 0

Oliver Charlesworth
Oliver Charlesworth

Reputation: 272497

No.

Although if you have make available, you can just do:

make file

Upvotes: 5

Related Questions