How to change default output file of g++ in ubuntu?

Viewed 44707

Trivially

g++ sample.c

generates a.out

Can g++ be configured to output to a different default name for output file ?

4 Answers
Related