tags:

views:

52

answers:

2

hello everyone, can somebody please explain what exactly is going on when I do in my Unix

> g++ -o hello hello.cpp

and

> g++ hello.cpp

what is the difference? Only renaming from a.out to hello? thanks in advance

+5  A: 

Yes, that is the only difference. See http://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html#index-output-file-option-79.

Oli Charlesworth
+3  A: 

Yes. Only renaming. It is the purpose of the -o option.

Didier Trosset