Trivially 'g++ sample.c' generates 'a,out'
Can g++ be configured to output to a different default name for output file ?
views:
42answers:
3
+1
A:
Use the g++
-o switch: g++ sample.cc -o myoutfile
See a man page for g++
-o file
Place output in file file.
Brian R. Bondy
2010-09-21 18:01:24
A:
Man pages are your friends:
$ man g++
(and just do a search for "out" and you're done ;)
pszilard
2010-09-21 18:07:41